From 9445c4900b120455583fbf48c8a08666a050bc5a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 5 Mar 2016 15:21:45 -0800 Subject: fix global.Math imports --- src/js/wasm.js-post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js/wasm.js-post.js') 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); -- cgit v1.2.3