fix(runtime): do not require deno namespace in workers for crypto (#9784)

This commit is contained in:
Casper Beyer 2021-03-15 03:01:55 +08:00 committed by GitHub
parent c8fbf6d38a
commit 7286eea75c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
self.crypto.getRandomValues(new Uint8Array(16));
onmessage = function () {
postMessage(!!self.crypto);
};