diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/basic/bug908915.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/basic/bug908915.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,26 @@ +// |jit-test| error: 42 +function f(y) {} +for each(let e in newGlobal()) { + if (e.name === "quit" || e.name == "readline" || e.name == "terminate" || + e.name == "nestedShell") + continue; + try { + e(); + } catch (r) {} +} +(function() { + arguments.__proto__.__proto__ = newGlobal() + function f(y) { + y() + } + for each(b in []) { + if (b.name === "quit" || b.name == "readline" || b.name == "terminate" || + b.name == "nestedShell") + continue; + try { + f(b) + } catch (e) {} + } +})(); + +throw 42;