summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/arguments-3.js
blob: f4453438c18bd3113a5325ba8d8bc0f873ce0a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 'arguments' in eval

function f() {
    var g = s => eval(s);
    assertEq(g("arguments"), arguments);
}

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

function h() {
    return s => eval(s);
}
var result = h(1, 2, 3, 4)("arguments");
assertEq(result.length, 4);
assertEq(result[3], 4);