summaryrefslogtreecommitdiff
path: root/src/tools/js-wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/js-wrapper.h')
-rw-r--r--src/tools/js-wrapper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/js-wrapper.h b/src/tools/js-wrapper.h
index b93948e74..85bc3d7ba 100644
--- a/src/tools/js-wrapper.h
+++ b/src/tools/js-wrapper.h
@@ -94,15 +94,15 @@ inline std::string generateJSWrapper(Module& wasm) {
ret += "if (instance.exports.hangLimitInitializer) "
"instance.exports.hangLimitInitializer();\n";
ret += "try {\n";
- ret += std::string(" console.log('[fuzz-exec] calling ") + exp->name.str +
- "');\n";
+ ret += std::string(" console.log('[fuzz-exec] calling ") +
+ exp->name.toString() + "');\n";
if (func->getResults() != Type::none) {
ret += std::string(" console.log('[fuzz-exec] note result: ") +
- exp->name.str + " => ' + literal(";
+ exp->name.toString() + " => ' + literal(";
} else {
ret += " ";
}
- ret += std::string("instance.exports.") + exp->name.str + "(";
+ ret += std::string("instance.exports.") + exp->name.toString() + "(";
bool first = true;
for (auto param : func->getParams()) {
// zeros in arguments TODO more?