summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Memory-drainAllocationsLog-05.js
blob: 0e8e035da757d708b3053eef3a57c0733b2848e0 (plain)
1
2
3
4
5
6
7
8
9
// Test an empty allocation log.

const root = newGlobal();
const dbg = new Debugger();
dbg.addDebuggee(root)

dbg.memory.trackingAllocationSites = true;
const allocs = dbg.memory.drainAllocationsLog();
assertEq(allocs.length, 0);