summaryrefslogtreecommitdiff
path: root/tests/subdir/test_worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/subdir/test_worker.js')
-rw-r--r--tests/subdir/test_worker.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/subdir/test_worker.js b/tests/subdir/test_worker.js
new file mode 100644
index 000000000..53d38ba96
--- /dev/null
+++ b/tests/subdir/test_worker.js
@@ -0,0 +1,7 @@
+onmessage = function(e) {
+ console.log(e.data);
+
+ postMessage(e.data);
+
+ workerClose();
+};