summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm-js.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp
index ec3f082bf..efc316a22 100644
--- a/src/wasm-js.cpp
+++ b/src/wasm-js.cpp
@@ -266,7 +266,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE instantiate() {
Literal getResultFromJS(double ret, WasmType type) {
switch (type) {
- case none: return Literal(0);
+ case none: return Literal();
case i32: return Literal((int32_t)ret);
case f32: return Literal((float)ret);
case f64: return Literal((double)ret);
@@ -303,7 +303,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE instantiate() {
return lookup.apply(null, tempArguments);
}, import->module.str, import->base.str);
- if (wasmJSDebug) std::cout << "calling import returning " << ret << '\n';
+ if (wasmJSDebug) std::cout << "calling import returning " << ret << " and function type is " << module->getFunctionType(import->functionType)->result << '\n';
return getResultFromJS(ret, module->getFunctionType(import->functionType)->result);
}