summaryrefslogtreecommitdiffstats
path: root/dom/promise/tests/promise_uncatchable_exception.js
blob: 6362a5fa54100100ffb98fcfa4000f6eb20469ec (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!");