diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/evaluate-restore-options.js')
-rw-r--r-- | js/src/jit-test/tests/basic/evaluate-restore-options.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/evaluate-restore-options.js b/js/src/jit-test/tests/basic/evaluate-restore-options.js new file mode 100644 index 000000000..263cc7272 --- /dev/null +++ b/js/src/jit-test/tests/basic/evaluate-restore-options.js @@ -0,0 +1,11 @@ +// Bug 791157: the shell 'evaluate' function should properly restore the +// context's options. + +try { + evaluate('%', {noScriptRval: true}); +} catch(e) {} +new Function(""); + +try { + evaluate('new Function("");', {noScriptRval: true}); +} catch (e) {} |