handle null values

This commit is contained in:
Volker Berlin 2019-01-20 11:31:33 +01:00
parent d0550a7642
commit a8c5affb18

View File

@ -103,6 +103,7 @@ class WasmStructInstruction extends WasmInstruction {
switch( op ) {
case NEW:
case NEW_DEFAULT:
case NULL:
return ValueType.anyref;
case GET:
return type instanceof ValueType ? (ValueType)type : ValueType.anyref;