blob: 9f2884a325a21e8ad5a1aa3774cbcd216daa6e19 (
plain)
1
2
3
4
5
6
7
8
|
// Bug 1239813: Don't let compartments get GC'd while findScripts is holding
// them in its ScriptQuery's hash set.
var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
dbg.addDebuggee(g);
g = newGlobal({sameZoneAs: g.Math});
dbg.findScripts({get source() { gc(); return undefined; }});
|