Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
evaluate-restore-options.js
blob: 263cc7272a60cb096928da01323d695aab658af5 [
file
] [
log
] [
blame
]
// 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
)
{}