Skip to content

Commit f36b649

Browse files
committed
dumper.js: fixed detection of recursion
1 parent f1a9d2c commit f36b649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tracy/Dumper/assets/dumper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
if (!object) {
123123
throw new UnknownEntityException;
124124
}
125-
parentIds = parentIds || [];
125+
parentIds = parentIds ? parentIds.slice() : [];
126126
let recursive = parentIds.indexOf(id) > -1;
127127
parentIds.push(id);
128128

0 commit comments

Comments
 (0)