Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
debug
/
Debugger-debuggees-29.js
blob: 30e97701a5f69a4ed88fc9ed69cf8f2b31b218e0 [
file
] [
log
] [
blame
]
// Debugger.prototype.addDebuggee should not accept invisible-to-debugger globals.
load
(
libdir
+
'asserts.js'
);
var
g
=
newGlobal
({
invisibleToDebugger
:
true
});
assertThrowsInstanceOf
(()
=>
{
new
Debugger
(
g
);
},
TypeError
);