diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index c0d6cbeeb..d1e06b5be 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -79,10 +79,13 @@ public: return func; } - static std::unique_ptr<Table> - makeTable(Name name, Address initial = 0, Address max = Table::kMaxSize) { + static std::unique_ptr<Table> makeTable(Name name, + Type type = Type::funcref, + Address initial = 0, + Address max = Table::kMaxSize) { auto table = std::make_unique<Table>(); table->name = name; + table->type = type; table->initial = initial; table->max = max; |