gecko-dev/dom/promise/tests/promise_uncatchable_excepti...

10 строки
261 B
JavaScript

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