mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
An array returns i32 for i8 and i16.
This commit is contained in:
parent
9acda37be4
commit
23199840c8
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2018 - 2021 Volker Berlin (i-net software)
|
Copyright 2018 - 2022 Volker Berlin (i-net software)
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@ -195,9 +195,13 @@ class WasmArrayInstruction extends WasmInstruction {
|
|||||||
case NEW_ARRAY_WITH_RTT:
|
case NEW_ARRAY_WITH_RTT:
|
||||||
return arrayType;
|
return arrayType;
|
||||||
case GET:
|
case GET:
|
||||||
|
return type;
|
||||||
case GET_S:
|
case GET_S:
|
||||||
case GET_U:
|
case GET_U:
|
||||||
return type instanceof ValueType ? (ValueType)type : ValueType.externref;
|
if( type == ValueType.i8 || type == ValueType.i16 ) {
|
||||||
|
return ValueType.i32;
|
||||||
|
}
|
||||||
|
return type;
|
||||||
case SET:
|
case SET:
|
||||||
return null;
|
return null;
|
||||||
case LEN:
|
case LEN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user