1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug783421.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +// Binary: cache/js-dbg-64-50e4ff05741e-linux 1.5 +// Flags: -m -n -a 1.6 +// 1.7 +gc() 1.8 +var p = n 1.9 +function m() { 1.10 + return function(f, code, t) { 1.11 + try { 1.12 + evalcx(code, newGlobal()) 1.13 + } catch (e) {} 1.14 + } 1.15 +} 1.16 +function n() { 1.17 + f() 1.18 +} 1.19 +function h(code) { 1.20 + f = Function(code) 1.21 + p(f, code, true) 1.22 +} 1.23 +h("\ 1.24 + p=m();\ 1.25 + gcPreserveCode();\ 1.26 + gcslice(7);\ 1.27 +") 1.28 +h("\"\"") 1.29 +h("") 1.30 +h("gc()") 1.31 +h("") 1.32 +h("") 1.33 +h("gczeal(4,2)")