wip fix
This commit is contained in:
parent
e2c13afd81
commit
0bd2943caf
|
|
@ -93,10 +93,10 @@ if (typeof global.server_hook === "function") {
|
||||||
while (ancestors.length > 0 && ancestors.at(-1) !== this) {
|
while (ancestors.length > 0 && ancestors.at(-1) !== this) {
|
||||||
ancestors.pop();
|
ancestors.pop();
|
||||||
}
|
}
|
||||||
if (ancestors.includes(value)) {
|
if (ancestors.includes(val)) {
|
||||||
return "[circular]";
|
return "[circular]";
|
||||||
}
|
}
|
||||||
ancestors.push(value);
|
ancestors.push(val);
|
||||||
|
|
||||||
if (val.constructor && val.constructor.name){
|
if (val.constructor && val.constructor.name){
|
||||||
return '[class] ' + val.constructor.name;
|
return '[class] ' + val.constructor.name;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue