diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-18 21:09:39 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-18 21:09:39 -0800 |
commit | fc5ee5c99bc8cdf383563c791d175da5002cb963 (patch) | |
tree | f8eb08cd5ea0db8ce575d4276be98792181b68b1 /src/js | |
parent | 154a6c210d89cf4270ff32fc9c996c8d8b5de63e (diff) | |
download | binaryen-fc5ee5c99bc8cdf383563c791d175da5002cb963.tar.gz binaryen-fc5ee5c99bc8cdf383563c791d175da5002cb963.tar.bz2 binaryen-fc5ee5c99bc8cdf383563c791d175da5002cb963.zip |
runtime debugging for wasm.js
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/post.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js/post.js b/src/js/post.js index 97fd2be9d..c2552c5a8 100644 --- a/src/js/post.js +++ b/src/js/post.js @@ -3,6 +3,7 @@ var wasmJS = WasmJS({}); // do not use the normal Module in the current scope // XXX don't be confused. Module here is in the outside program. wasmJS is the inner wasm-js.cpp. + wasmJS['outside'] = Module; // Inside wasm-js.cpp, Module['outside'] reaches the outside module. // Generate a module instance of the asm.js converted into wasm. var code; |