fix: fuck

This commit is contained in:
TopchetoEU 2024-04-02 18:24:43 +03:00
parent ece9cf68dc
commit 6eea342d04
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -289,7 +289,10 @@ public class NativeWrapperProvider implements WrapperProvider {
private void updateProtoChain(Class<?> clazz, ObjectValue proto, FunctionValue constr) { private void updateProtoChain(Class<?> clazz, ObjectValue proto, FunctionValue constr) {
var parent = clazz; var parent = clazz;
while (parent != null) { while (true) {
parent = parent.getSuperclass();
if (parent == null) break;
var parentProto = getProto(parent); var parentProto = getProto(parent);
var parentConstr = getConstr(parent); var parentConstr = getConstr(parent);
@ -299,8 +302,6 @@ public class NativeWrapperProvider implements WrapperProvider {
return; return;
} }
parent = parent.getSuperclass();
} }
} }