From fc5ee5c99bc8cdf383563c791d175da5002cb963 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 18 Nov 2015 21:09:39 -0800 Subject: runtime debugging for wasm.js --- src/js/post.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/js/post.js') 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; -- cgit v1.2.3