Skip to content

Commit

Permalink
fixup! test: make sure weak references are not GCed too early
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR committed Apr 30, 2019
1 parent 8cc10b0 commit 73d936c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-util-inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ util.inspect(process);
expectAlt = 'WeakSet { [ 1, [length]: 1 ], ... 1 more item, extra: true }';
assert(out === expect || out === expectAlt,
`Found: "${out}"\nrather than: "${expect}"\nor: "${expectAlt}"`);
// Keep references to the WeakMap entries, otherwise they could be GCed to
// Keep references to the WeakMap entries, otherwise they could be GCed too
// early.
assert(obj && arr);
}
Expand Down

0 comments on commit 73d936c

Please sign in to comment.