This commit is contained in:
Rizky 2024-02-18 08:47:55 +07:00
parent e2c13afd81
commit 0bd2943caf
1 changed files with 2 additions and 2 deletions

View File

@ -93,10 +93,10 @@ if (typeof global.server_hook === "function") {
while (ancestors.length > 0 && ancestors.at(-1) !== this) {
ancestors.pop();
}
if (ancestors.includes(value)) {
if (ancestors.includes(val)) {
return "[circular]";
}
ancestors.push(value);
ancestors.push(val);
if (val.constructor && val.constructor.name){
return '[class] ' + val.constructor.name;