diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-04 21:57:32 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-04 21:57:32 -0800 |
commit | 04889b818323309d1b6ddd2b628409a83dcf4ba1 (patch) | |
tree | 90d1c6d81f90c1062dd6ddb83fc9339bce5c5320 /src/js | |
parent | 2a36300d4318a0a7b7275eac4939d4badfe74877 (diff) | |
download | binaryen-04889b818323309d1b6ddd2b628409a83dcf4ba1.tar.gz binaryen-04889b818323309d1b6ddd2b628409a83dcf4ba1.tar.bz2 binaryen-04889b818323309d1b6ddd2b628409a83dcf4ba1.zip |
move WasmTypes in integrateWasmJS to the right place
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/wasm.js-post.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/js/wasm.js-post.js b/src/js/wasm.js-post.js index 7f36776b8..caeadf837 100644 --- a/src/js/wasm.js-post.js +++ b/src/js/wasm.js-post.js @@ -88,6 +88,14 @@ function integrateWasmJS(Module) { }; } + var WasmTypes = { + none: 0, + i32: 1, + i64: 2, + f32: 3, + f64: 4 + }; + // wasm lacks globals, so asm2wasm maps them into locations in memory. that information cannot // be present in the wasm output of asm2wasm, so we store it in a side file. If we load asm2wasm // output, either generated ahead of time or on the client, we need to apply those mapped @@ -130,14 +138,6 @@ function integrateWasmJS(Module) { return; } - var WasmTypes = { - none: 0, - i32: 1, - i64: 2, - f32: 3, - f64: 4 - }; - // Use wasm.js to polyfill and execute code in a wasm interpreter. var wasmJS = WasmJS({}); |