From 0bd2943caf78e2b5e3f1be404beb8e94d3e9bd59 Mon Sep 17 00:00:00 2001 From: Rizky Date: Sun, 18 Feb 2024 08:47:55 +0700 Subject: [PATCH] wip fix --- app/srv/ws/sync/editor/code/build-code.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/srv/ws/sync/editor/code/build-code.ts b/app/srv/ws/sync/editor/code/build-code.ts index 9d473c12..4ecac25d 100644 --- a/app/srv/ws/sync/editor/code/build-code.ts +++ b/app/srv/ws/sync/editor/code/build-code.ts @@ -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;