Debian Codegraph @

js/src/jit-test/tests/debug/Debugger-clearAllBreakpoints-finalized.js

raw
1 gczeal(23);
2
3 String + "";
4
5 var g = newGlobal({ newCompartment: true });
6 var dbg = Debugger(g);
7 dbg.onNewScript = function (script) {
8 script.setBreakpoint(0, () => {});
9 };
10 g.eval("");
11
12 // Trigger GC, which will mark the eval script about to be finalized,
13 // and the DebugScriptMap entry will be removed.
14 Uint8Array;
15
16 // This shouldn't try to use the DebugScriptMap entry.
17 dbg.clearAllBreakpoints();