blob: 543d5656f49b8ee8901ba8596583354ccba33829 (
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();
var dbg = new Debugger();
dbg.addDebuggee(g);
g = newGlobal({sameZoneAs: g.Math});
dbg.findScripts({get source() { gc(); return undefined; }});
|