summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/worker-exception.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/worker-exception.js')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/worker-exception.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/worker-exception.js b/devtools/client/debugger/test/mochitest/examples/worker-exception.js
new file mode 100644
index 0000000000..e3bebfefb2
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/worker-exception.js
@@ -0,0 +1,4 @@
+self.onmessage = () => {
+ throw new Error("OH NO!");
+}
+nofunc();