summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Memory-drainAllocationsLog-07.js
blob: 21ffb3aaf61b97be48ede71bddf287f84e7779bc (plain)
1
2
3
4
5
6
7
8
9
10
// Test retrieving the log when allocation tracking hasn't ever been enabled.

load(libdir + 'asserts.js');

const root = newGlobal({newCompartment: true});
const dbg = new Debugger();
dbg.addDebuggee(root)

assertThrowsInstanceOf(() => dbg.memory.drainAllocationsLog(),
                       Error);