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