summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testApplySpeculationFailInCompiler.js
blob: 8a79a5cf5ecbd72cb0879966831b409b86b3db5c (plain)
1
2
3
4
5
6
function baz(i) { return i }
function bar(x, y) { return baz.apply(null, x ? y : arguments) }
var s;
for (var i = 0; i < 1000; ++i)
  s = bar(true, [42]);
assertEq(s, 42);