mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
wasm: fix Array.get with enabled inlining
This commit is contained in:
parent
d7cae4af55
commit
f6131a8248
|
@ -109,7 +109,11 @@ public class ArrayGenerator implements WasmMethodGenerator {
|
|||
MethodReference methodRef = new MethodReference(wrapper, "valueOf",
|
||||
primitiveTypes[i], ValueType.object(wrapper));
|
||||
ClassReader cls = context.getClassSource().get(methodRef.getClassName());
|
||||
if (cls == null || cls.getMethod(methodRef.getDescriptor()) == null) {
|
||||
if (cls == null) {
|
||||
continue;
|
||||
}
|
||||
var valueOfMethod = cls.getMethod(methodRef.getDescriptor());
|
||||
if (valueOfMethod == null || valueOfMethod.getProgram() == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user