summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm.h4
-rw-r--r--test/emcc_hello_world.wast6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 87e18c7ba..8869c7e80 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -392,7 +392,7 @@ public:
std::ostream& print(std::ostream &o, unsigned indent, bool full=false) {
if (full) {
printOpening(o, "type") << ' ';
- name.print(o);
+ name.print(o) << " (func";
}
if (params.size() > 0) {
o << ' ';
@@ -409,7 +409,7 @@ public:
printBasicType(o, result) << ')';
}
if (full) {
- o << ')';
+ o << "))";;
}
return o;
}
diff --git a/test/emcc_hello_world.wast b/test/emcc_hello_world.wast
index ec4769a6d..6e96a9644 100644
--- a/test/emcc_hello_world.wast
+++ b/test/emcc_hello_world.wast
@@ -1,7 +1,7 @@
(module
- (type $FUNCSIG$ii (param i32) (result i32))
- (type $FUNCSIG$iiii (param i32 i32 i32) (result i32))
- (type $FUNCSIG$vi (param i32))
+ (type $FUNCSIG$ii (func (param i32) (result i32)))
+ (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
+ (type $FUNCSIG$vi (func (param i32)))
(import $Math_clz32 "global" "clz32" (param i32) (result i32))
(import $___lock "env" "___lock" (param i32))
(import $___syscall140 "env" "___syscall140" (param i32 i32) (result i32))