summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/tracelogger/bug1302417.js
blob: 18819207650b913bc90d0b05f99588e9565b8329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

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

if (typeof new Debugger().setupTraceLoggerScriptCalls == "function") {
    lfLogBuffer = `
        var du = new Debugger;
        du.setupTraceLoggerScriptCalls();
        startTraceLogger();
    `;
    loadFile(lfLogBuffer);
    function loadFile(lfVarx) {
        oomTest(function() {
                m = parseModule(lfVarx);
                m.declarationInstantiation();
                m.evaluation();
        })
    }
}