File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 24
24
const {
25
25
ArrayIsArray,
26
26
Error,
27
+ FunctionPrototypeCall,
27
28
MathMin,
28
29
ObjectKeys,
29
30
ObjectSetPrototypeOf,
@@ -560,7 +561,7 @@ Server.prototype.close = function() {
560
561
} ;
561
562
562
563
Server . prototype [ SymbolAsyncDispose ] = async function ( ) {
563
- return promisify ( this . close ) . call ( this ) ;
564
+ return FunctionPrototypeCall ( promisify ( this . close ) , this ) ;
564
565
} ;
565
566
566
567
Server . prototype . closeAllConnections = function ( ) {
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ Server.prototype.close = function() {
113
113
} ;
114
114
115
115
Server . prototype [ SymbolAsyncDispose ] = async function ( ) {
116
- return promisify ( this . close ) . call ( this ) ;
116
+ return FunctionPrototypeCall ( promisify ( this . close ) , this ) ;
117
117
} ;
118
118
119
119
/**
Original file line number Diff line number Diff line change @@ -3192,7 +3192,7 @@ class Http2Server extends NETServer {
3192
3192
}
3193
3193
3194
3194
async [ SymbolAsyncDispose ] ( ) {
3195
- return promisify ( super . close ) . call ( this ) ;
3195
+ return FunctionPrototypeCall ( promisify ( super . close ) , this ) ;
3196
3196
}
3197
3197
}
3198
3198
You can’t perform that action at this time.
0 commit comments