aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-18 19:03:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-18 19:03:57 -0700
commit3963031492acab163f8fa440aaf50661d954506b (patch)
tree5c5087f900094360f8824a0a27afe25876cee90f
parentc6957230632426c68bc4d4687cd597be3481f63c (diff)
post messages to crunch worker with a new arrayBuffer, to avoid copying an underlying one
-rw-r--r--tools/file_packager.py2
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);