summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/call_throws.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/call_throws.js')
-rw-r--r--dom/workers/test/call_throws.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/workers/test/call_throws.js b/dom/workers/test/call_throws.js
new file mode 100644
index 0000000000..dfde155961
--- /dev/null
+++ b/dom/workers/test/call_throws.js
@@ -0,0 +1,4 @@
+function workerMethod() {
+ console.log("workerMethod about to throw...");
+ throw new Error("Method-Throw-Payload");
+}