summaryrefslogtreecommitdiff
path: root/src/tools/wasm2js.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm2js.cpp')
-rw-r--r--src/tools/wasm2js.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/wasm2js.cpp b/src/tools/wasm2js.cpp
index 1464f48f8..8659ef6e2 100644
--- a/src/tools/wasm2js.cpp
+++ b/src/tools/wasm2js.cpp
@@ -982,6 +982,11 @@ int main(int argc, const char* argv[]) {
"request for silly amounts of memory)";
}
+ // TODO: Remove this restriction when wasm2js can handle multiple tables
+ if (wasm.tables.size() > 1) {
+ Fatal() << "error: modules with multiple tables are not supported yet.";
+ }
+
if (options.passOptions.validate) {
if (!WasmValidator().validate(wasm)) {
std::cout << wasm << '\n';