mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
handle null values
This commit is contained in:
parent
d0550a7642
commit
a8c5affb18
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user