Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
David Baker
2023-09-26 17:31:00 +01:00
committed by GitHub
parent 4613d43c3c
commit 2cfa007d4c

View File

@@ -566,7 +566,7 @@ const getCircularReplacer = function (): StringifyReplacer {
depth = depthMap.get(value) ?? 0;
}
// 'this' is supposed to be the object the value was foudn in, according to
// 'this' is supposed to be the object the value was found in, according to
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
// but that doesn't seem to be the case. Instead, we do a pre-pass on the children here to
// remember what depth we saw them at.