summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testFunApplyMisspeculation.js
blob: d572d4ff2098e67aad75cb11366561625e247734 (plain)
1
2
3
var h = { apply:function() { return "ponies"; } };
function f() { var x = 3; g = function() { return ++x }; return h.apply(null, arguments) }
assertEq(f(), "ponies");