Skip to content

Commit

Permalink
Update lib/internal/streams/writable.js
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Nagy <ronagy@icloud.com>
  • Loading branch information
benjamingr and ronag authored Jun 29, 2023
1 parent dd5f9f1 commit 0ec7691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/writable.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,5 +947,5 @@ Writable.prototype[SymbolAsyncDispose] = function() {
error = this.writableFinished ? null : new AbortError();
this.destroy(error);
}
return new Promise((resolve, reject) => eos(this, (err) => (err && err !== error ? reject(err) : resolve(null))));
return new Promise((resolve, reject) => eos(this, (err) => (err && err.name !== 'AbortError ? reject(err) : resolve(null))));
};

0 comments on commit 0ec7691

Please sign in to comment.