summaryrefslogtreecommitdiff
path: root/test/wasm2js/block.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-04-23 12:40:14 -0700
committerGitHub <noreply@github.com>2019-04-23 12:40:14 -0700
commit455f431260efbd48f018259bf8db544e1b9d03c4 (patch)
treea068bb5b5377007a7e343459c025ea843b181fd7 /test/wasm2js/block.2asm.js
parent7fe2701d3bcbea625405f7b8c852aa3154face6b (diff)
downloadbinaryen-455f431260efbd48f018259bf8db544e1b9d03c4.tar.gz
binaryen-455f431260efbd48f018259bf8db544e1b9d03c4.tar.bz2
binaryen-455f431260efbd48f018259bf8db544e1b9d03c4.zip
wasm2js: avoid non-ES5 stuff like "let" (#2041)
Also fix the fuzzer's handling of feature flags so that wasm2js can work.
Diffstat (limited to 'test/wasm2js/block.2asm.js')
-rw-r--r--test/wasm2js/block.2asm.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/wasm2js/block.2asm.js b/test/wasm2js/block.2asm.js
index 42679297d..0c4fa1774 100644
--- a/test/wasm2js/block.2asm.js
+++ b/test/wasm2js/block.2asm.js
@@ -189,19 +189,19 @@ 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 empty = retasmFunc.empty;
-export const singular = retasmFunc.singular;
-export const multi = retasmFunc.multi;
-export const nested = retasmFunc.nested;
-export const deep = retasmFunc.deep;
-export const as_unary_operand = retasmFunc.as_unary_operand;
-export const as_binary_operand = retasmFunc.as_binary_operand;
-export const as_test_operand = retasmFunc.as_test_operand;
-export const as_compare_operand = retasmFunc.as_compare_operand;
-export const break_bare = retasmFunc.break_bare;
-export const break_value = retasmFunc.break_value;
-export const break_repeated = retasmFunc.break_repeated;
-export const break_inner = retasmFunc.break_inner;
-export const effects = retasmFunc.effects;
+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 empty = retasmFunc.empty;
+export var singular = retasmFunc.singular;
+export var multi = retasmFunc.multi;
+export var nested = retasmFunc.nested;
+export var deep = retasmFunc.deep;
+export var as_unary_operand = retasmFunc.as_unary_operand;
+export var as_binary_operand = retasmFunc.as_binary_operand;
+export var as_test_operand = retasmFunc.as_test_operand;
+export var as_compare_operand = retasmFunc.as_compare_operand;
+export var break_bare = retasmFunc.break_bare;
+export var break_value = retasmFunc.break_value;
+export var break_repeated = retasmFunc.break_repeated;
+export var break_inner = retasmFunc.break_inner;
+export var effects = retasmFunc.effects;