mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 23:47:51 +01:00
handle null values
This commit is contained in:
parent
d0550a7642
commit
a8c5affb18
@ -103,6 +103,7 @@ class WasmStructInstruction extends WasmInstruction {
|
|||||||
switch( op ) {
|
switch( op ) {
|
||||||
case NEW:
|
case NEW:
|
||||||
case NEW_DEFAULT:
|
case NEW_DEFAULT:
|
||||||
|
case NULL:
|
||||||
return ValueType.anyref;
|
return ValueType.anyref;
|
||||||
case GET:
|
case GET:
|
||||||
return type instanceof ValueType ? (ValueType)type : ValueType.anyref;
|
return type instanceof ValueType ? (ValueType)type : ValueType.anyref;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user