1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/recompile/bug671943-2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +if (typeof schedulegc != 'undefined') 1.5 + schedulegc(11); 1.6 +function foo(n) { 1.7 + if (n == 10) 1.8 + foo.apply = function(a, b) { return b[0]; } 1.9 + return n; 1.10 +} 1.11 +function bar() { return foo.apply(null, arguments); } 1.12 +for (var i = 0; i < 20; i++) 1.13 + assertEq(bar(i), i);