summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testCallApplySpeculationFailed.js
blob: f1b127839f87b3695531d566337d8890d2a8f120 (plain)
1
2
3
4
5
function foo(n) { return n; }
foo.apply = function(a, b) { return b[0]; }
function bar(value) { return foo.apply(null, arguments); }
for (var i = 1 ; i < 4; i++)
  assertEq(bar(i), i);