summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/evaluate-restore-options.js
blob: 263cc7272a60cb096928da01323d695aab658af5 (plain)
1
2
3
4
5
6
7
8
9
10
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) {}