Skip to content

Commit f85edb3

Browse files
jasnelladuh95
authored andcommitted
stream: replace object sentinel with symbol
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #65652 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent e7daa18 commit f85edb3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/internal/streams/iter/consumers.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const {
1818
Promise,
1919
PromisePrototypeThen,
2020
SafePromiseAllReturnVoid,
21+
Symbol,
2122
SymbolAsyncIterator,
2223
TypedArrayPrototypeGetBuffer,
2324
TypedArrayPrototypeGetByteLength,
@@ -390,7 +391,7 @@ function ondrain(drainable) {
390391
// Merge Utility
391392
// =============================================================================
392393

393-
const kNoMergeError = { __proto__: null };
394+
const kNoMergeError = Symbol('kNoMergeError');
394395

395396
/**
396397
* Merge multiple async iterables by yielding values in temporal order.

0 commit comments

Comments
 (0)