diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm2js.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h index cb7bfd20d..0a2e45d49 100644 --- a/src/wasm2js.h +++ b/src/wasm2js.h @@ -598,8 +598,7 @@ void Wasm2JSBuilder::addTable(Ref ast, Module* wasm) { Ref theVar = ValueBuilder::makeVar(); ast->push_back(theVar); - Ref table = - ValueBuilder::makeNew(ValueBuilder::makeCall(IString("Table"), theArray)); + Ref table = ValueBuilder::makeCall(IString("Table"), theArray); ValueBuilder::appendToVar(theVar, FUNCTION_TABLE, table); } else if (!wasm->table.imported()) { // Otherwise if the table is internal (neither imported not exported). |