diff options
-rw-r--r-- | src/library_browser.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index fd09f478..13275702 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -691,7 +691,7 @@ mergeInto(LibraryManager.library, { info.worker.postMessage({ 'funcName': funcName, 'callbackId': callbackId, - 'data': data ? {{{ makeHEAPView('U8', 'data', 'data + size') }}} : 0 + 'data': data ? new Uint8Array({{{ makeHEAPView('U8', 'data', 'data + size') }}}) : 0 // XXX copy to a new typed array as a workaround for chrome bug 169705 }); }, @@ -701,7 +701,7 @@ mergeInto(LibraryManager.library, { workerResponded = true; postMessage({ 'callbackId': workerCallbackId, - 'data': data ? {{{ makeHEAPView('U8', 'data', 'data + size') }}} : 0 + 'data': data ? new Uint8Array({{{ makeHEAPView('U8', 'data', 'data + size') }}}) : 0 // XXX copy to a new typed array as a workaround for chrome bug 169705 }); }, |