diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-12-06 15:58:02 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 15:58:02 -1000 |
commit | 76ddda73d630d50839c2eef5e86a96e16625b6ed (patch) | |
tree | a3152b9f25d73baf8d4ea68899443e46c1efa5a9 /src/js/wasm.js-post.js | |
parent | 9f78d931f450163da81672b42697b98776746918 (diff) | |
download | binaryen-76ddda73d630d50839c2eef5e86a96e16625b6ed.tar.gz binaryen-76ddda73d630d50839c2eef5e86a96e16625b6ed.tar.bz2 binaryen-76ddda73d630d50839c2eef5e86a96e16625b6ed.zip |
use exported static base and bump (#853)
Diffstat (limited to 'src/js/wasm.js-post.js')
-rw-r--r-- | src/js/wasm.js-post.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/wasm.js-post.js b/src/js/wasm.js-post.js index 90c2f18b8..03543cbae 100644 --- a/src/js/wasm.js-post.js +++ b/src/js/wasm.js-post.js @@ -104,7 +104,7 @@ function integrateWasmJS(Module) { // If we have a mem init file, do not trample it if (!memoryInitializer) { - oldView.set(newView.subarray(STATIC_BASE, STATIC_BASE + STATIC_BUMP), STATIC_BASE); + oldView.set(newView.subarray(Module['STATIC_BASE'], Module['STATIC_BASE'] + Module['STATIC_BUMP']), Module['STATIC_BASE']); } newView.set(oldView); @@ -306,7 +306,7 @@ function integrateWasmJS(Module) { } if (!env['memoryBase']) { - env['memoryBase'] = STATIC_BASE; // tell the memory segments where to place themselves + env['memoryBase'] = Module['STATIC_BASE']; // tell the memory segments where to place themselves } if (!env['tableBase']) { env['tableBase'] = 0; // table starts at 0 by default, in dynamic linking this will change |