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

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

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

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


assertEq(actual, expected)