summaryrefslogtreecommitdiff
path: root/test/wasm2js/conversions-modified.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/conversions-modified.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/conversions-modified.2asm.js')
-rw-r--r--test/wasm2js/conversions-modified.2asm.js54
1 files changed, 27 insertions, 27 deletions
diff --git a/test/wasm2js/conversions-modified.2asm.js b/test/wasm2js/conversions-modified.2asm.js
index 3bd7cb097..c81b58adf 100644
--- a/test/wasm2js/conversions-modified.2asm.js
+++ b/test/wasm2js/conversions-modified.2asm.js
@@ -728,30 +728,30 @@ 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'); },setTempRet0},memasmFunc);
-export const i64_extend_s_i32 = retasmFunc.i64_extend_s_i32;
-export const i64_extend_u_i32 = retasmFunc.i64_extend_u_i32;
-export const i32_wrap_i64 = retasmFunc.i32_wrap_i64;
-export const i32_trunc_s_f32 = retasmFunc.i32_trunc_s_f32;
-export const i32_trunc_u_f32 = retasmFunc.i32_trunc_u_f32;
-export const i32_trunc_s_f64 = retasmFunc.i32_trunc_s_f64;
-export const i32_trunc_u_f64 = retasmFunc.i32_trunc_u_f64;
-export const i64_trunc_s_f32 = retasmFunc.i64_trunc_s_f32;
-export const i64_trunc_u_f32 = retasmFunc.i64_trunc_u_f32;
-export const i64_trunc_s_f64 = retasmFunc.i64_trunc_s_f64;
-export const i64_trunc_u_f64 = retasmFunc.i64_trunc_u_f64;
-export const f32_convert_s_i32 = retasmFunc.f32_convert_s_i32;
-export const f32_convert_s_i64 = retasmFunc.f32_convert_s_i64;
-export const f64_convert_s_i32 = retasmFunc.f64_convert_s_i32;
-export const f64_convert_s_i64 = retasmFunc.f64_convert_s_i64;
-export const f32_convert_u_i32 = retasmFunc.f32_convert_u_i32;
-export const f32_convert_u_i64 = retasmFunc.f32_convert_u_i64;
-export const f64_convert_u_i32 = retasmFunc.f64_convert_u_i32;
-export const f64_convert_u_i64 = retasmFunc.f64_convert_u_i64;
-export const f64_promote_f32 = retasmFunc.f64_promote_f32;
-export const f32_demote_f64 = retasmFunc.f32_demote_f64;
-export const f32_reinterpret_i32 = retasmFunc.f32_reinterpret_i32;
-export const f64_reinterpret_i64 = retasmFunc.f64_reinterpret_i64;
-export const i32_reinterpret_f32 = retasmFunc.i32_reinterpret_f32;
-export const i64_reinterpret_f64 = retasmFunc.i64_reinterpret_f64;
+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'); },setTempRet0},memasmFunc);
+export var i64_extend_s_i32 = retasmFunc.i64_extend_s_i32;
+export var i64_extend_u_i32 = retasmFunc.i64_extend_u_i32;
+export var i32_wrap_i64 = retasmFunc.i32_wrap_i64;
+export var i32_trunc_s_f32 = retasmFunc.i32_trunc_s_f32;
+export var i32_trunc_u_f32 = retasmFunc.i32_trunc_u_f32;
+export var i32_trunc_s_f64 = retasmFunc.i32_trunc_s_f64;
+export var i32_trunc_u_f64 = retasmFunc.i32_trunc_u_f64;
+export var i64_trunc_s_f32 = retasmFunc.i64_trunc_s_f32;
+export var i64_trunc_u_f32 = retasmFunc.i64_trunc_u_f32;
+export var i64_trunc_s_f64 = retasmFunc.i64_trunc_s_f64;
+export var i64_trunc_u_f64 = retasmFunc.i64_trunc_u_f64;
+export var f32_convert_s_i32 = retasmFunc.f32_convert_s_i32;
+export var f32_convert_s_i64 = retasmFunc.f32_convert_s_i64;
+export var f64_convert_s_i32 = retasmFunc.f64_convert_s_i32;
+export var f64_convert_s_i64 = retasmFunc.f64_convert_s_i64;
+export var f32_convert_u_i32 = retasmFunc.f32_convert_u_i32;
+export var f32_convert_u_i64 = retasmFunc.f32_convert_u_i64;
+export var f64_convert_u_i32 = retasmFunc.f64_convert_u_i32;
+export var f64_convert_u_i64 = retasmFunc.f64_convert_u_i64;
+export var f64_promote_f32 = retasmFunc.f64_promote_f32;
+export var f32_demote_f64 = retasmFunc.f32_demote_f64;
+export var f32_reinterpret_i32 = retasmFunc.f32_reinterpret_i32;
+export var f64_reinterpret_i64 = retasmFunc.f64_reinterpret_i64;
+export var i32_reinterpret_f32 = retasmFunc.i32_reinterpret_f32;
+export var i64_reinterpret_f64 = retasmFunc.i64_reinterpret_f64;