fune/dom/promise/tests/promise_uncatchable_exception.js
Alec Gibson 6a56241703 Bug 1532935 - Enable ESLint for dom/promise (manual changes). r=mccr8
Patch by Alec, updated by Standard8.

Differential Revision: https://phabricator.services.mozilla.com/D29646

--HG--
extra : moz-landing-system : lando
2019-06-25 20:12:47 +00:00

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