Skip to content

Commit 821c487

Browse files
committed
CR
1 parent 5ba9565 commit 821c487

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/_http_server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
const {
2525
ArrayIsArray,
2626
Error,
27+
FunctionPrototypeCall,
2728
MathMin,
2829
ObjectKeys,
2930
ObjectSetPrototypeOf,
@@ -560,7 +561,7 @@ Server.prototype.close = function() {
560561
};
561562

562563
Server.prototype[SymbolAsyncDispose] = async function() {
563-
return promisify(this.close).call(this);
564+
return FunctionPrototypeCall(promisify(this.close), this);
564565
};
565566

566567
Server.prototype.closeAllConnections = function() {

lib/https.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Server.prototype.close = function() {
113113
};
114114

115115
Server.prototype[SymbolAsyncDispose] = async function() {
116-
return promisify(this.close).call(this);
116+
return FunctionPrototypeCall(promisify(this.close), this);
117117
};
118118

119119
/**

lib/internal/http2/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3192,7 +3192,7 @@ class Http2Server extends NETServer {
31923192
}
31933193

31943194
async [SymbolAsyncDispose]() {
3195-
return promisify(super.close).call(this);
3195+
return FunctionPrototypeCall(promisify(super.close), this);
31963196
}
31973197
}
31983198

0 commit comments

Comments
 (0)