summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r--src/shell-interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h
index a5293ac76..8c5793bfc 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -221,6 +221,8 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
std::cout << "[trap " << why << "]\n";
throw TrapException();
}
+
+ void throwException(Literal exn) override { throw WasmException(exn); }
};
} // namespace wasm