diff options
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug702003.js')
-rw-r--r-- | js/src/jit-test/tests/auto-regress/bug702003.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug702003.js b/js/src/jit-test/tests/auto-regress/bug702003.js new file mode 100644 index 000000000..da30715dc --- /dev/null +++ b/js/src/jit-test/tests/auto-regress/bug702003.js @@ -0,0 +1,25 @@ +// Binary: cache/js-dbg-64-50c1bcb49c76-linux +// Flags: -m -n -a +// + +var lfcode = new Array(); +lfcode.push("try { \ + gczeal(2);\ + exitFunc ('test');\ + } catch(exc1) {}\ +"); +lfcode.push("var summary = 'Foo'; \ + var actual = 'No Crash';\ + var expect = 'No Crash';\ + test();\ + function test() {\ + try {\ + eval('(function(){ <x/>.(yield 4) })().next();');\ + }\ catch(ex) { 'Bar'; }\ + }\ +"); +while (true) { + var code = lfcode.shift(); + if (code == undefined) { break; } + evaluate(code); +} |