summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/promise/drain-job-queue-after-quit-called.js
blob: ceb067e291b0344645a39e5eb170357afd69ac63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function d() {
    quit();
}

function bt() {
    getBacktrace({thisprops: true});
}

d.toString = bt.toString = drainJobQueue.toString = function () {
    if (this === bt)
        return '';
    this();
}

bt();