summaryrefslogtreecommitdiff
path: root/cli/tests/subdir/worker_crypto.js
diff options
context:
space:
mode:
authorOliver Lenehan <sunsetkookaburra+github@outlook.com.au>2020-05-08 22:30:53 +1000
committerGitHub <noreply@github.com>2020-05-08 14:30:53 +0200
commita08a4abac116eda498f8ad2df13b3816ec36c9ad (patch)
tree261a52fe93fc184f8af9aaf037cd74f27a532f76 /cli/tests/subdir/worker_crypto.js
parentc0e8bae498b1892b994757b5f4972913c076a65e (diff)
feat(workers): "crypto" global accessible in Worker scope (#5121)
Diffstat (limited to 'cli/tests/subdir/worker_crypto.js')
-rw-r--r--cli/tests/subdir/worker_crypto.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/subdir/worker_crypto.js b/cli/tests/subdir/worker_crypto.js
new file mode 100644
index 000000000..a86340005
--- /dev/null
+++ b/cli/tests/subdir/worker_crypto.js
@@ -0,0 +1,3 @@
+onmessage = function () {
+ postMessage(!!self.crypto);
+};