Skip to content

Commit

Permalink
fix(ext/node): fix stream.Writable
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 22, 2023
1 parent 616354e commit 95e455d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/node/polyfills/_stream.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1669,9 +1669,11 @@ var require_destroy = __commonJS({
}
}
try {
stream._construct(onConstruct);
stream._construct((err) => {
nextTick(onConstruct, err);
});
} catch (err) {
onConstruct(err);
nextTick(onConstruct, err);
}
}
function emitConstructNT(stream) {
Expand Down

0 comments on commit 95e455d

Please sign in to comment.