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 2424const {
2525 ArrayIsArray,
2626 Error,
27+ FunctionPrototypeCall,
2728 MathMin,
2829 ObjectKeys,
2930 ObjectSetPrototypeOf,
@@ -560,7 +561,7 @@ Server.prototype.close = function() {
560561} ;
561562
562563Server . prototype [ SymbolAsyncDispose ] = async function ( ) {
563- return promisify ( this . close ) . call ( this ) ;
564+ return FunctionPrototypeCall ( promisify ( this . close ) , this ) ;
564565} ;
565566
566567Server . prototype . closeAllConnections = function ( ) {
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ Server.prototype.close = function() {
113113} ;
114114
115115Server . prototype [ SymbolAsyncDispose ] = async function ( ) {
116- return promisify ( this . close ) . call ( this ) ;
116+ return FunctionPrototypeCall ( promisify ( this . close ) , this ) ;
117117} ;
118118
119119/**
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments