Debian Codegraph @

js/src/jit-test/tests/arguments/spread-args-obj-04.js

raw
1 var result;
2
3 function g(a, b) {
4 with ({}) {}
5 result = a + b;
6 }
7
8 function escape() { with({}) {} }
9
10 function f() {
11 escape(arguments);
12 for (var i = 0; i < 50; ++i) {
13 g(...arguments);
14 }
15 }
16
17 f(1, 2);
18 assertEq(result, 3);
19
20 f("");
21 assertEq(result, "undefined");