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.js9
1 files changed, 9 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 000000000..d062e21af
--- /dev/null
+++ b/dom/promise/tests/promise_uncatchable_exception.js
@@ -0,0 +1,9 @@
+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!");