1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug781364.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +// Binary: cache/js-dbg-64-21b4797e4cb3-linux 1.5 +// Flags: -m -a --ion-eager 1.6 +// 1.7 +k = m 1.8 +function h() { 1.9 + switch (true) { 1.10 + default: 1.11 + x = newGlobal('') 1.12 + } 1.13 + return function(f, code) { 1.14 + try { 1.15 + evalcx(code, x) 1.16 + } catch (e) {} 1.17 + } 1.18 +} 1.19 +function m() { 1.20 + f() 1.21 +} 1.22 +function g(code) { 1.23 + f = new Function(code); 1.24 + k(f, code) 1.25 +} 1.26 +g("k=h()") 1.27 +g("\ 1.28 + a='';\ 1.29 + Object.defineProperty(this,\"b\",{get:function(){a=this.d()}});\ 1.30 + Object.defineProperty(this,\"c\",{get:function(){b}});\ 1.31 + d=2;\ 1.32 + b\ 1.33 +"); 1.34 +g("b"); 1.35 +g("b"); 1.36 +g("for(v of c);"); 1.37 +g("a=eval(\"function f(){}\");b")