Skip to content

Commit 21f0fd8

Browse files
committed
stream: replace object sentinel with symbol
Signed-off-by: James M Snell <jasnell@gmail.com>
1 parent c46935c commit 21f0fd8

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,
@@ -401,7 +402,7 @@ function ondrain(drainable) {
401402
// Merge Utility
402403
// =============================================================================
403404

404-
const kNoMergeError = { __proto__: null };
405+
const kNoMergeError = Symbol('kNoMergeError');
405406

406407
/**
407408
* Merge multiple async iterables by yielding values in temporal order.

0 commit comments

Comments
 (0)