fix: fuck

This commit is contained in:
2024-04-02 18:24:43 +03:00
parent ece9cf68dc
commit aaa781dee0

View File

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