mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Any array is a subtype of eqref
This commit is contained in:
parent
5d2a3805db
commit
c1b0feb0d5
@ -167,7 +167,7 @@ public class ArrayType extends StructType {
|
||||
*/
|
||||
@Override
|
||||
public boolean isSubTypeOf( AnyType type ) {
|
||||
if( type == this || type == ValueType.externref ) {
|
||||
if( type == this || type == ValueType.externref || type == ValueType.anyref || type == ValueType.eqref ) {
|
||||
return true;
|
||||
}
|
||||
if( !(type instanceof StructType) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user