blob: 420b6faec84bd285b3b7a4b4ef8b2e00d1112862 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Looking at ScriptSourceObjects in invisible-to-debugger compartments is okay.
var gi = newGlobal({ newCompartment: true, invisibleToDebugger: true });
var gv = newGlobal({newCompartment: true});
gi.cloneAndExecuteScript('function f() {}', gv);
var dbg = new Debugger;
var gvw = dbg.addDebuggee(gv);
gvw.getOwnPropertyDescriptor('f').value.script.source;
|