You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PromiseWorker.prototype.postMessage=function(userMessage){varself=thisvarmessageId=messageIds++varmessageToSend=[messageId,userMessage]returnnewPromise(function(resolve,reject){self._callbacks[messageId]=function(error,result){if(error){returnreject(newError(error.message))}resolve(result)}/* istanbul ignore if */if(typeofself._worker.controller!=='undefined'){// service worker, use MessageChannels because e.source is broken in Chrome < 51:// https://bugs.chromium.org/p/chromium/issues/detail?id=543198varchannel=newMessageChannel()channel.port1.onmessage=function(e){onMessage(self,e)}self._worker.controller.postMessage(messageToSend,[channel.port2])}else{// web workerself._worker.postMessage(messageToSend)}})}
when userMessage is Object,the var messageToSend = [messageId, userMessage] Causing object references not to be released.
The text was updated successfully, but these errors were encountered:
when userMessage is Object,the
var messageToSend = [messageId, userMessage]
Causing object references not to be released.The text was updated successfully, but these errors were encountered: