diff options
author | Alon Zakai <azakai@google.com> | 2020-09-30 12:40:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 12:40:05 -0700 |
commit | 20d6236b1b96878015c050fc953d63a040d60385 (patch) | |
tree | a8586d61b55ebd2a5a5cbb0591918b9f240f96ad /test/wasm2js/dynamicLibrary.2asm.js | |
parent | 07047103a26e1c17ee995ef3e1358ddb26d8e8c8 (diff) | |
download | binaryen-20d6236b1b96878015c050fc953d63a040d60385.tar.gz binaryen-20d6236b1b96878015c050fc953d63a040d60385.tar.bz2 binaryen-20d6236b1b96878015c050fc953d63a040d60385.zip |
Remove unnecessary "new" on Table generation in wasm2js (#3163)
It's not an actual constructor, just a JS function that returns the object.
Diffstat (limited to 'test/wasm2js/dynamicLibrary.2asm.js')
-rw-r--r-- | test/wasm2js/dynamicLibrary.2asm.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/wasm2js/dynamicLibrary.2asm.js b/test/wasm2js/dynamicLibrary.2asm.js index c750310b7..1824b2b9b 100644 --- a/test/wasm2js/dynamicLibrary.2asm.js +++ b/test/wasm2js/dynamicLibrary.2asm.js @@ -48,7 +48,7 @@ function asmFunc(global, env, buffer) { } - var FUNCTION_TABLE = new Table(new Array(10)); + var FUNCTION_TABLE = Table(new Array(10)); FUNCTION_TABLE[import$tableBase + 0] = foo; FUNCTION_TABLE[import$tableBase + 1] = bar; function __wasm_memory_size() { |