1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug728509.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +// Binary: cache/js-dbg-32-78fde7e54d92-linux 1.5 +// Flags: -m -n -a 1.6 +// 1.7 +function g(code) { 1.8 + try { 1.9 + f = eval("(function(){" + code + "})") 1.10 + } catch (r) {} 1.11 + f() 1.12 + try { 1.13 + evalcx("(function(){return" + code + "})()") 1.14 + } catch (e) {} 1.15 +} 1.16 +g("") 1.17 +g(" function(x,[]){NaN.x::c}()")