Skip to content

Commit 73d936c

Browse files
committed
fixup! test: make sure weak references are not GCed too early
1 parent 8cc10b0 commit 73d936c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-util-inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ util.inspect(process);
16611661
expectAlt = 'WeakSet { [ 1, [length]: 1 ], ... 1 more item, extra: true }';
16621662
assert(out === expect || out === expectAlt,
16631663
`Found: "${out}"\nrather than: "${expect}"\nor: "${expectAlt}"`);
1664-
// Keep references to the WeakMap entries, otherwise they could be GCed to
1664+
// Keep references to the WeakMap entries, otherwise they could be GCed too
16651665
// early.
16661666
assert(obj && arr);
16671667
}

0 commit comments

Comments
 (0)