Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
stream: use a Symbol for kParkedAlgorithmResult
The parked-result sentinel is only ever compared by identity, so a
Symbol describes its purpose better than an empty null-prototype
object.

Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Aug 22, 2026
commit 06951a7347163e2c6be2dac559934cd77ef1a2c0
2 changes: 1 addition & 1 deletion lib/internal/webstreams/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const kResolvedPromise = PromiseResolve();
// operation and takes responsibility for delivering the fulfilled (or
// rejected) continuation itself later, instead of settling a promise
// (see the transform stream source pull algorithm).
const kParkedAlgorithmResult = { __proto__: null };
const kParkedAlgorithmResult = Symbol('kParkedAlgorithmResult');

// Wires the (possibly non-thenable) result of an underlying algorithm
// callback to its fulfilled/rejected continuations. A non-thenable result
Expand Down
Loading