summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/inline-arguments-callee.js
blob: f825839a0fd6806f91b8391892068ef8a62b1667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function inner() {
    return arguments.callee;
}
function inner_escaped() {
    return arguments;
}
function outer() {
    assertEq(inner(), inner);
    assertEq(inner_escaped().callee, inner_escaped);
    assertEq(arguments.callee, outer);
}

with({}) {}
for (var i = 0; i < 100; i++) {
    outer();
}