diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 14:35:58 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 14:35:58 -0800 |
commit | 4aee30b209d5394f539af0000eb24064af11fa0c (patch) | |
tree | ec0c4cb05ee151e3e5d460e91ee3e51962a4472b /src/js | |
parent | ee74df535b0c9757642410957ac478085f6ba6ae (diff) | |
download | binaryen-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.js | 2 |
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'] = { |