summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1102549.js
blob: fbe38d9ae4db2219c0d1cd05e01e4085e23f6bdb (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| error: log is not defined

if (!this.Promise)
    throw new Error('log is not defined');

var g = newGlobal({newCompartment: true});
var dbg = new Debugger(g);
dbg.onPromiseSettled = function (g) { log += 's'; throw "foopy"; };
g.settlePromiseNow(new g.Promise(function (){}));