mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
fix the the type of GET field of struct
This commit is contained in:
parent
515123d4e1
commit
6285aee077
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2018 - 2019 Volker Berlin (i-net software)
|
Copyright 2018 - 2020 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.
|
||||||
@ -194,8 +194,9 @@ class WasmStructInstruction extends WasmInstruction {
|
|||||||
return ValueType.anyref;
|
return ValueType.anyref;
|
||||||
case NEW:
|
case NEW:
|
||||||
case NEW_DEFAULT:
|
case NEW_DEFAULT:
|
||||||
case GET:
|
|
||||||
return type;
|
return type;
|
||||||
|
case GET:
|
||||||
|
return fieldName.getType();
|
||||||
case SET:
|
case SET:
|
||||||
return null;
|
return null;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user