From 64ef7065a0d4f86619dd3f916be6312ed85e6485 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 26 Nov 2024 09:07:15 +0000 Subject: [PATCH] fix: safari support requires we don't use --- src/extensions/replay/sessionrecording-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/replay/sessionrecording-utils.ts b/src/extensions/replay/sessionrecording-utils.ts index 0122bae9d..02270bdf3 100644 --- a/src/extensions/replay/sessionrecording-utils.ts +++ b/src/extensions/replay/sessionrecording-utils.ts @@ -11,7 +11,7 @@ export function circularReferenceReplacer() { if (isObject(value)) { // `this` is the object that value is contained in, // i.e., its direct parent. - while (ancestors.length > 0 && ancestors.at(-1) !== this) { + while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) { ancestors.pop() } if (ancestors.includes(value)) {