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