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

function g(x) {
  appendToActual('g ' + x);
}

function f() {
  g.apply(this, arguments);
}

for (var i = 0; i < 5; ++i) {
  f(i);
}


assertEq(actual, expected)