mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +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");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -194,8 +194,9 @@ class WasmStructInstruction extends WasmInstruction {
|
||||
return ValueType.anyref;
|
||||
case NEW:
|
||||
case NEW_DEFAULT:
|
||||
case GET:
|
||||
return type;
|
||||
case GET:
|
||||
return fieldName.getType();
|
||||
case SET:
|
||||
return null;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user