diff options
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfills/_stream.mjs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/node/polyfills/_stream.mjs b/ext/node/polyfills/_stream.mjs index 6b772ac04..591f8bb51 100644 --- a/ext/node/polyfills/_stream.mjs +++ b/ext/node/polyfills/_stream.mjs @@ -1665,7 +1665,7 @@ var require_destroy = __commonJS({ } else if (err) { errorOrDestroy(stream, err, true); } else { - process.nextTick(emitConstructNT, stream); + stream.emit(kConstruct); } } try { @@ -1676,9 +1676,6 @@ var require_destroy = __commonJS({ nextTick(onConstruct, err); } } - function emitConstructNT(stream) { - stream.emit(kConstruct); - } function isRequest(stream) { return stream && stream.setHeader && typeof stream.abort === "function"; } |