summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args-mutate-length-2.js
blob: 1db881b4237720cb1706da3dc74f1d38fdccca8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
actual = '';
expected = '0,1,0,1,0,1,';

function f() {
  for (var i = 0; i < arguments.length; ++i) {
    appendToActual(i);
  }
}

f(1, 2);
f(1, 2);
f(2, 2);


assertEq(actual, expected)