feat: honor passed set in toReadableLines

This commit is contained in:
2025-01-06 13:22:58 +02:00
parent ba0b4e06ad
commit 3d5be60fc7

View File

@@ -316,6 +316,7 @@ public class ObjectValue extends Value {
return res;
}
@Override public List<String> toReadableLines(Environment env, HashSet<ObjectValue> passed) {
if (passed.contains(this)) return Arrays.asList("[circular]");
return toReadableLines(env, passed, new HashSet<>());
}