summaryrefslogtreecommitdiffstats
path: root/dom/promise/tests/promise_uncatchable_exception.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/promise/tests/promise_uncatchable_exception.js')
-rw-r--r--dom/promise/tests/promise_uncatchable_exception.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/promise/tests/promise_uncatchable_exception.js b/dom/promise/tests/promise_uncatchable_exception.js
new file mode 100644
index 0000000000..eafc9e5448
--- /dev/null
+++ b/dom/promise/tests/promise_uncatchable_exception.js
@@ -0,0 +1,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!");