messagechannel check

This commit is contained in:
Emil Bay 2020-06-26 12:43:09 +02:00
parent f830975aa5
commit 72d376d56f

View File

@ -1,5 +1,6 @@
/* eslint-disable camelcase */ /* eslint-disable camelcase */
if (!window) var { MessageChannel } = require('worker' + '_threads') var MessageChannel = global.MessageChannel
if (MessageChannel == null) ({ MessageChannel } = require('worker' + '_threads'))
function sodium_malloc (n) { function sodium_malloc (n) {
return new Uint8Array(n) return new Uint8Array(n)