diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/auto-regress/bug593580.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/auto-regress/bug593580.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,29 @@ +// Binary: cache/js-dbg-64-60af58b42567-linux +// Flags: +// +realEval = eval +f = eval("(function(){for(let x in[\ + __defineGetter__(\"\",function(){})\ + ,__defineGetter__(\"\ + functional\ + \",Math.pow)\ + ]){\ + (__defineSetter__(\"\",function(){}))\ + ()\ + }})") +try { + f() +} catch (r) { + delete this.eval + delete this.Math + eval = realEval + e = this.toSource +} +f = eval("(function(){(__defineSetter__(\"\ + functional\ + \",(function(){return{t:function(){}}})))()})") +try { + f() +} catch (r) { + eval() +}