From 1333d9a31ecacb39643e132400d9409aa3f989be Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 20 Apr 2021 08:23:10 -0700 Subject: [Wasm GC] Fix the type of ref.as_func, which should be non-nullable (#3821) --- src/wasm/wasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3