summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1711414.js
blob: 174a78b50709e75fcb7184230746aa346a547f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
function bar() { this[0] = "overwritten"; }

function foo() {
    bar.apply(arguments, arguments);
    return arguments[0];
}

with ({}) {}
for (var i = 0; i < 100; i++) {
    assertEq(foo("original"), "overwritten");
}