diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-13 10:38:59 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-13 10:38:59 -0800 |
commit | 6d07a47ad17f2767cd413542e47bd5edacacbe3a (patch) | |
tree | f8aff1ff2638006623e1b2d228dc7a9c0741a6bf /src/library_browser.js | |
parent | b40b122720de90d52948870e6a7bf9c4f851cca1 (diff) |
workarounds for chrome bug 169705
Diffstat (limited to 'src/library_browser.js')
-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 }); }, |