summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 2be386f95..ed6411258 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -109,8 +109,8 @@ public:
}
}
- Literal callExport(IString name, LiteralList& arguments) {
- Export *export_ = wasm.getExport(name);
+ Literal callExport(Name name, LiteralList& arguments) {
+ Export *export_ = wasm.checkExport(name);
if (!export_) externalInterface->trap("callExport not found");
return callFunction(export_->value, arguments);
}