Revert "[WASM] Remove deprecated usage of externref"

This reverts commit 270a41a2db.
This commit is contained in:
Igor Yakovlev
2022-08-18 13:12:22 +02:00
committed by teamcity
parent 61d6f69bca
commit 780fdd44b3
4 changed files with 9 additions and 3 deletions
@@ -450,6 +450,7 @@ fun generateDefaultInitializerForType(type: WasmType, g: WasmExpressionBuilder)
WasmF64 -> g.buildConstF64(0.0)
is WasmRefNullType -> g.buildRefNull(type.heapType)
is WasmAnyRef -> g.buildRefNull(WasmHeapType.Simple.Any)
is WasmExternRef -> g.buildRefNull(WasmHeapType.Simple.Extern)
WasmUnreachableType -> error("Unreachable type can't be initialized")
else -> error("Unknown value type ${type.name}")
}