Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
jaeger
/
bug563000
/
eif-call-newvar.js
blob: 635b5bb99f2a29e10b7b043a70d291b40dc37770 [
file
] [
log
] [
blame
]
load
(
libdir
+
"evalInFrame.js"
);
function
callee
()
{
evalInFrame
(
1
,
"var x = 'success'"
);
}
function
caller
(
code
)
{
eval
(
code
);
callee
();
return
x
;
}
assertEq
(
caller
(
'var y = "ignominy"'
),
"success"
);
assertEq
(
typeof
x
,
"undefined"
);