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