Skip to content

Commit bd8ee4b

Browse files
committed
stream: fix typo
1 parent cbe1987 commit bd8ee4b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/internal/streams/end-of-stream.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function getEosOnCloseError(stream, readable, readableFinished, writable, writab
109109

110110
// Internal only: if eos() can settle immediately, invoke the callback before
111111
// returning cleanup. Callers must tolerate cleanup yet to be assigned.
112-
const kEosNodeSyncronousCallback = Symbol('kEosNodeSynchronousCallback');
112+
const kEosNodeSynchronousCallback = Symbol('kEosNodeSynchronousCallback');
113113

114114
function eos(stream, options, callback) {
115115
if (arguments.length === 2) {
@@ -197,7 +197,7 @@ function eos(stream, options, callback) {
197197
} else if (options.signal?.aborted) {
198198
immediateResult = new AbortError(undefined, { cause: options.signal.reason });
199199
}
200-
if (immediateResult !== undefined && options[kEosNodeSyncronousCallback]) {
200+
if (immediateResult !== undefined && options[kEosNodeSynchronousCallback]) {
201201
ReflectApply(callback, stream, immediateResult === null ? [] : [immediateResult]);
202202
return cleanup;
203203
}
@@ -404,5 +404,5 @@ function finished(stream, opts) {
404404
module.exports = {
405405
eos,
406406
finished,
407-
kEosNodeSyncronousCallback,
407+
kEosNodeSynchronousCallback,
408408
};

lib/internal/webstreams/adapters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const {
9393

9494
const {
9595
eos,
96-
kEosNodeSyncronousCallback,
96+
kEosNodeSynchronousCallback,
9797
} = require('internal/streams/end-of-stream');
9898

9999
const { UV_EOF } = internalBinding('uv');
@@ -516,7 +516,7 @@ function newReadableStreamFromStreamReadable(streamReadable, options = kEmptyObj
516516
cleanup = eos(streamReadable, {
517517
__proto__: null,
518518
writable: false,
519-
[kEosNodeSyncronousCallback]: true,
519+
[kEosNodeSynchronousCallback]: true,
520520
}, (error) => {
521521
error = handleKnownInternalErrors(error);
522522

0 commit comments

Comments
 (0)