summaryrefslogtreecommitdiffstats
path: root/dom/promise/tests/promise_uncatchable_exception.js
blob: d062e21af3e14818fa6ec580abbab677840d577e (plain)
1
2
3
4
5
6
7
8
9
postMessage("Done", "*");

var p = new Promise(function(resolve, reject) {
  TestFunctions.throwUncatchableException();
  ok(false, "Shouldn't get here!");
}).catch(function(exception) {
  ok(false, "Shouldn't get here!");
});
ok(false, "Shouldn't get here!");