diff options
Diffstat (limited to 'src/js/wasm.js-post.js')
-rw-r--r-- | src/js/wasm.js-post.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/wasm.js-post.js b/src/js/wasm.js-post.js index b2ec40b00..762c1bd30 100644 --- a/src/js/wasm.js-post.js +++ b/src/js/wasm.js-post.js @@ -125,10 +125,10 @@ function integrateWasmJS(Module) { var binary = Module['readBinary'](Module['wasmCodeFile']); // Create an instance of the module using native support in the JS engine. info['global'] = { - 'Math': global.Math, 'NaN': NaN, 'Infinity': Infinity }; + info['global.Math'] = global.Math; info['env'] = env; var instance; instance = Wasm.instantiateModule(binary, info); |