diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-05 15:21:45 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-05 15:21:45 -0800 |
commit | 9445c4900b120455583fbf48c8a08666a050bc5a (patch) | |
tree | c555d6863c13e1c4717211125331b24ac12c0820 /src/js/wasm.js-post.js | |
parent | bb4c679ebd25594c1efa797ec2d643c15abc4fa7 (diff) | |
download | binaryen-9445c4900b120455583fbf48c8a08666a050bc5a.tar.gz binaryen-9445c4900b120455583fbf48c8a08666a050bc5a.tar.bz2 binaryen-9445c4900b120455583fbf48c8a08666a050bc5a.zip |
fix global.Math imports
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); |