diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-18 19:03:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-18 19:03:57 -0700 |
commit | 3963031492acab163f8fa440aaf50661d954506b (patch) | |
tree | 5c5087f900094360f8824a0a27afe25876cee90f | |
parent | c6957230632426c68bc4d4687cd597be3481f63c (diff) |
post messages to crunch worker with a new arrayBuffer, to avoid copying an underlying one
-rw-r--r-- | tools/file_packager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py index a65de3f7..cc030f59 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -236,7 +236,7 @@ if crunch: function requestDecrunch(filename, data, callback) { decrunchWorker.postMessage({ filename: filename, - data: data, + data: new Uint8Array(data), callbackID: decrunchCallbacks.length }); decrunchCallbacks.push(callback); |