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

function h(k) {
  for (var i = 0; i < 5; ++i) {
    var a = arguments;
    appendToActual(a[k]);
  }
}

h(0);
h(2, 99, 88, 77);
h(-5);
h(46);
h('adf');


assertEq(actual, expected)