summaryrefslogtreecommitdiff
path: root/src/js/post.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/post.js')
-rw-r--r--src/js/post.js1
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;