From 455f431260efbd48f018259bf8db544e1b9d03c4 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 23 Apr 2019 12:40:14 -0700 Subject: wasm2js: avoid non-ES5 stuff like "let" (#2041) Also fix the fuzzer's handling of feature flags so that wasm2js can work. --- test/wasm2js/nested-selects.2asm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/wasm2js/nested-selects.2asm.js') diff --git a/test/wasm2js/nested-selects.2asm.js b/test/wasm2js/nested-selects.2asm.js index b38cd6313..1e6698d59 100644 --- a/test/wasm2js/nested-selects.2asm.js +++ b/test/wasm2js/nested-selects.2asm.js @@ -33,6 +33,6 @@ 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 sign = retasmFunc.sign; +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 sign = retasmFunc.sign; -- cgit v1.2.3