Debian Codegraph @

js/src/jit-test/tests/debug/Memory-drainAllocationsLog-05.js

raw
1 // Test an empty allocation log.
2
3 const root = newGlobal({newCompartment: true});
4 const dbg = new Debugger();
5 dbg.addDebuggee(root)
6
7 dbg.memory.trackingAllocationSites = true;
8 const allocs = dbg.memory.drainAllocationsLog();
9 assertEq(allocs.length, 0);