diff options
Diffstat (limited to 'test/wasm2js/reinterpret.2asm.js')
-rw-r--r-- | test/wasm2js/reinterpret.2asm.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/wasm2js/reinterpret.2asm.js b/test/wasm2js/reinterpret.2asm.js index 0084b9ad6..b4954e59f 100644 --- a/test/wasm2js/reinterpret.2asm.js +++ b/test/wasm2js/reinterpret.2asm.js @@ -110,7 +110,7 @@ function asmFunc(global, env, buffer) { }; } -const memasmFunc = new ArrayBuffer(65536); -const retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); }},memasmFunc); -export const i32_roundtrip = retasmFunc.i32_roundtrip; -export const i64_roundtrip = retasmFunc.i64_roundtrip; +var memasmFunc = new ArrayBuffer(65536); +var retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); }},memasmFunc); +export var i32_roundtrip = retasmFunc.i32_roundtrip; +export var i64_roundtrip = retasmFunc.i64_roundtrip; |