summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-16 14:35:58 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-16 14:35:58 -0800
commit4aee30b209d5394f539af0000eb24064af11fa0c (patch)
treeec0c4cb05ee151e3e5d460e91ee3e51962a4472b /src/js
parentee74df535b0c9757642410957ac478085f6ba6ae (diff)
downloadbinaryen-4aee30b209d5394f539af0000eb24064af11fa0c.tar.gz
binaryen-4aee30b209d5394f539af0000eb24064af11fa0c.tar.bz2
binaryen-4aee30b209d5394f539af0000eb24064af11fa0c.zip
use the new BINARYEN option in emscripten
Diffstat (limited to 'src/js')
-rw-r--r--src/js/post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/post.js b/src/js/post.js
index 2ecec51aa..45d850f10 100644
--- a/src/js/post.js
+++ b/src/js/post.js
@@ -22,7 +22,7 @@
wasmJS._free(temp);
// Generate memory XXX TODO get the right size
- var theBuffer = Module['buffer'] = new ArrayBuffer(64*1024*1024);
+ var theBuffer = Module['buffer'] = new ArrayBuffer(Module['providedTotalMemory'] || 64*1024*1024);
// Information for the instance of the module.
var info = wasmJS['info'] = {