summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/chrome/worker_discardSystemSource.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests/chrome/worker_discardSystemSource.js')
-rw-r--r--js/xpconnect/tests/chrome/worker_discardSystemSource.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/xpconnect/tests/chrome/worker_discardSystemSource.js b/js/xpconnect/tests/chrome/worker_discardSystemSource.js
new file mode 100644
index 0000000000..5da32511fa
--- /dev/null
+++ b/js/xpconnect/tests/chrome/worker_discardSystemSource.js
@@ -0,0 +1,6 @@
+function canary() {
+ // eslint-disable-next-line no-unused-vars
+ var someBitOfSource = 42;
+}
+
+postMessage(canary.toString());