diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-04-23 12:40:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 12:40:14 -0700 |
commit | 455f431260efbd48f018259bf8db544e1b9d03c4 (patch) | |
tree | a068bb5b5377007a7e343459c025ea843b181fd7 /test/wasm2js/func_ptrs.2asm.js | |
parent | 7fe2701d3bcbea625405f7b8c852aa3154face6b (diff) | |
download | binaryen-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/func_ptrs.2asm.js')
-rw-r--r-- | test/wasm2js/func_ptrs.2asm.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js index 09515b006..245b1d95b 100644 --- a/test/wasm2js/func_ptrs.2asm.js +++ b/test/wasm2js/func_ptrs.2asm.js @@ -51,12 +51,12 @@ 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'); },print},memasmFunc); -export const one = retasmFunc.one; -export const two = retasmFunc.two; -export const three = retasmFunc.three; -export const four = retasmFunc.four; +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'); },print},memasmFunc); +export var one = retasmFunc.one; +export var two = retasmFunc.two; +export var three = retasmFunc.three; +export var four = retasmFunc.four; function asmFunc(global, env, buffer) { "almost asm"; @@ -119,10 +119,10 @@ 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 callt = retasmFunc.callt; -export const callu = retasmFunc.callu; +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 callt = retasmFunc.callt; +export var callu = retasmFunc.callu; function asmFunc(global, env, buffer) { "almost asm"; @@ -166,6 +166,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 callt = retasmFunc.callt; +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 callt = retasmFunc.callt; |