1 // Test that the onGarbageCollection hook is not reentrant.
3 Services.prefs.setBoolPref("security.allow_eval_with_system_principal", true);
4 registerCleanupFunction(() => {
5 Services.prefs.clearUserPref("security.allow_eval_with_system_principal");
11 const root = newGlobal();
12 const dbg = new Debugger();
13 const wrappedRoot = dbg.addDebuggee(root)
18 dbg.memory.onGarbageCollection = _ => {
36 dbg.memory.onGarbageCollection = undefined;