Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
atlowChemi committed Jun 26, 2023
1 parent 5ba9565 commit 821c487
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
const {
ArrayIsArray,
Error,
FunctionPrototypeCall,
MathMin,
ObjectKeys,
ObjectSetPrototypeOf,
Expand Down Expand Up @@ -560,7 +561,7 @@ Server.prototype.close = function() {
};

Server.prototype[SymbolAsyncDispose] = async function() {
return promisify(this.close).call(this);
return FunctionPrototypeCall(promisify(this.close), this);
};

Server.prototype.closeAllConnections = function() {
Expand Down
2 changes: 1 addition & 1 deletion lib/https.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Server.prototype.close = function() {
};

Server.prototype[SymbolAsyncDispose] = async function() {
return promisify(this.close).call(this);
return FunctionPrototypeCall(promisify(this.close), this);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3192,7 +3192,7 @@ class Http2Server extends NETServer {
}

async [SymbolAsyncDispose]() {
return promisify(super.close).call(this);
return FunctionPrototypeCall(promisify(super.close), this);
}
}

Expand Down

0 comments on commit 821c487

Please sign in to comment.