summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1102549.js
blob: d7bb893f282bb2f4e0563d053014f01bd8cfcf76 (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();
var dbg = new Debugger(g);
dbg.onPromiseSettled = function (g) { log += 's'; throw "foopy"; };
g.settlePromiseNow(new g.Promise(function (){}));