Debian Codegraph @

js/src/jit-test/tests/debug/Debugger-debuggees-29.js

raw
1 // Debugger.prototype.addDebuggee should not accept invisible-to-debugger globals.
2 load(libdir + 'asserts.js');
3
4 var g = newGlobal({ newCompartment: true, invisibleToDebugger: true });
5
6 assertThrowsInstanceOf(() => { new Debugger(g); }, TypeError);