1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/asm.js/testBug975182.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +Function("\ 1.5 + g = (function(t,foreign){\ 1.6 + \"use asm\";\ 1.7 + var ff = foreign.ff;\ 1.8 + function f() {\ 1.9 + +ff()\ 1.10 + }\ 1.11 + return f\ 1.12 + })(this, {\ 1.13 + ff: arguments.callee\ 1.14 + }, new ArrayBuffer(4096))\ 1.15 +")() 1.16 +function m(f) { 1.17 + for (var j = 0; j < 6000; ++j) { 1.18 + f(); 1.19 + } 1.20 +} 1.21 +m(g);