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
Next Next commit
http: initialize kAbortController to null instead of undefined
  • Loading branch information
akshatsrivastava11 committed Apr 2, 2026
commit b9a1333b3d3249ed93e1a269ee1b83119102474d
4 changes: 2 additions & 2 deletions lib/_http_incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function IncomingMessage(socket) {
// Flag for when we decide that this message cannot possibly be
// read by the user, so there's no point continuing to handle it.
this._dumped = false;
this[kAbortController] = undefined;
this[kAbortController] = null;
}
ObjectSetPrototypeOf(IncomingMessage.prototype, Readable.prototype);
ObjectSetPrototypeOf(IncomingMessage, Readable);
Expand Down Expand Up @@ -192,7 +192,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'signal', {
__proto__: null,
configurable: true,
get: function() {
if (this[kAbortController] === undefined) {
if (this[kAbortController] === null) {
const ac = new AbortController();
this[kAbortController] = ac;
if (this.destroyed) {
Expand Down