summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm/wasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 34dcf75ee..410ba0573 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -1028,7 +1028,7 @@ void RefAs::finalize() {
type = Type(value->type.getHeapType(), NonNullable);
break;
case RefAsFunc:
- type = Type::funcref;
+ type = Type(HeapType::func, NonNullable);
break;
case RefAsData:
type = Type::dataref;