summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/external-arguments-mutate-callee.js
blob: 9cb4af6f1c8aa4d12d79cfb619c7bb8a34d79981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function foo() {
    arguments.callee = {name: "mutated"};
    return bar(arguments);
}

function bar(x) {
    assertEq(x.callee.name, "mutated");
    assertEq(arguments.callee.name, "bar");
}

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