Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // Looking at ScriptSourceObjects in invisible-to-debugger compartments is okay.
3 var gi = newGlobal({ invisibleToDebugger: true });
4 gi.eval('function f() {}');
6 var gv = newGlobal();
7 gv.f = gi.f;
8 gv.eval('f = clone(f);');
10 var dbg = new Debugger;
11 var gvw = dbg.addDebuggee(gv);
12 gvw.getOwnPropertyDescriptor('f').value.script.source;