Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
evaluate-catchTermination.js
blob: 6a9d3c74a79c8d1c0ce94b00a6c18fe80f062102 [
file
] [
log
] [
blame
]
// Test evaluate's catchTermination option.
var
x
=
0
;
assertEq
(
evaluate
(
'x = 1; terminate(); x = 2;'
,
{
catchTermination
:
true
}),
"terminated"
);
assertEq
(
x
,
1
);