summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args10.js
blob: 4f31084e063bef393dbd037f1f70c99c36ab07a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
actual = '';
expected = 'function h(x, y) { return arguments; },2,4,8,';

function h(x, y) { return arguments; }

var p;
for (var i = 0; i < 5; ++i) {
  p = h(i, i*2);
}
appendToActual(p.callee);
appendToActual(p.length);
appendToActual(p[0]);
appendToActual(p[1]);


assertEq(actual, expected)