1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug593580.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +// Binary: cache/js-dbg-64-60af58b42567-linux 1.5 +// Flags: 1.6 +// 1.7 +realEval = eval 1.8 +f = eval("(function(){for(let x in[\ 1.9 + __defineGetter__(\"\",function(){})\ 1.10 + ,__defineGetter__(\"\ 1.11 + functional\ 1.12 + \",Math.pow)\ 1.13 + ]){\ 1.14 + (__defineSetter__(\"\",function(){}))\ 1.15 + ()\ 1.16 + }})") 1.17 +try { 1.18 + f() 1.19 +} catch (r) { 1.20 + delete this.eval 1.21 + delete this.Math 1.22 + eval = realEval 1.23 + e = this.toSource 1.24 +} 1.25 +f = eval("(function(){(__defineSetter__(\"\ 1.26 + functional\ 1.27 + \",(function(){return{t:function(){}}})))()})") 1.28 +try { 1.29 + f() 1.30 +} catch (r) { 1.31 + eval() 1.32 +}