Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
bug870328.js
blob: f5f0b1e9d5acf048c3af8c8edf2b325a3912552d [
file
] [
log
] [
blame
]
var
g
=
newGlobal
(
"same-compartment"
);
try
{
evalcx
(
"'use strict'; (function() { x = 33; })()"
,
g
);
assertEq
(
0
,
1
);
}
catch
(
e
)
{
assertEq
(
e
.
toString
().
includes
(
"variable x"
),
true
);
}