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

12 строки
289 B
JavaScript

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