Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
debug
/
onDebuggerStatement-01.js
blob: 524072072dc8ff4c02998c8f81d05660d2ec1ef4 [
file
] [
log
] [
blame
]
var
g
=
newGlobal
();
g
.
log
=
''
;
var
dbg
=
Debugger
(
g
);
dbg
.
onDebuggerStatement
=
function
(
stack
)
{
g
.
log
+=
'!'
;
};
assertEq
(
g
.
eval
(
"log += '1'; debugger; log += '2'; 3;"
),
3
);
assertEq
(
g
.
log
,
'1!2'
);