summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/makeGlobalObjectReference-03.js
blob: 4c5685d30a6af2d90711a1231b4b772ea3866eae (plain)
1
2
3
4
5
6
7
8
// Debugger.prototype.makeGlobalObjectReference should not accept invisible-to-debugger globals.
load(libdir + 'asserts.js');

var g = newGlobal({ invisibleToDebugger: true });

assertThrowsInstanceOf(function () {
  (new Debugger).makeGlobalObjectReference(g)
}, TypeError);