summaryrefslogtreecommitdiffstats
path: root/dom/promise/tests/promise_uncatchable_exception.js
blob: eafc9e544885fc5fbc6583e0f30d8c0000c8ec5c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* global TestFunctions */

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!");