summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/tracelogger/bug1257194.js
blob: 8b17bef875272596bf868a8ef682a8f8dd16958b (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| allow-oom

if (!('oomAfterAllocations' in this))
  quit();

var du = new Debugger();
if (typeof du.drainTraceLogger == "function") {
    var obj = du.drainTraceLogger();
    oomAfterAllocations(1);
    du.drainTraceLogger().length;
}