Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
debug
/
Frame-eval-28.js
blob: e70281697907a518f35eefc870bd8b9ce2cd6e87 [
file
] [
log
] [
blame
]
// Test that strict Debugger.Frame.eval has a correct static scope.
options
(
'strict_mode'
);
var
g
=
newGlobal
();
var
dbg
=
new
Debugger
(
g
);
var
hits
=
0
;
dbg
.
onEnterFrame
=
function
(
f
)
{
hits
++;
if
(
hits
>
2
)
return
;
f
.
eval
(
"42"
);
};
g
.
eval
(
"42"
);