summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/test-evaluate-worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/webconsole/test/browser/test-evaluate-worker.js')
-rw-r--r--devtools/client/webconsole/test/browser/test-evaluate-worker.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/devtools/client/webconsole/test/browser/test-evaluate-worker.js b/devtools/client/webconsole/test/browser/test-evaluate-worker.js
new file mode 100644
index 0000000000..7d3ca22979
--- /dev/null
+++ b/devtools/client/webconsole/test/browser/test-evaluate-worker.js
@@ -0,0 +1,8 @@
+"use strict";
+
+self.addEventListener("message", ({ data }) => foo(data));
+
+function foo(data) {
+ // eslint-disable-next-line no-debugger
+ debugger;
+}