File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -294,9 +294,9 @@ var proxiedMethods = [
294
294
295
295
// Proxy HandleWrap, PipeWrap and TCPWrap methods
296
296
proxiedMethods . forEach ( function ( name ) {
297
- tls_wrap . TLSWrap . prototype [ name ] = function methodProxy ( ) {
297
+ tls_wrap . TLSWrap . prototype [ name ] = function methodProxy ( ... args ) {
298
298
if ( this . _parent [ name ] )
299
- return this . _parent [ name ] . apply ( this . _parent , arguments ) ;
299
+ return this . _parent [ name ] . apply ( this . _parent , args ) ;
300
300
} ;
301
301
} ) ;
302
302
@@ -986,11 +986,7 @@ function normalizeConnectArgs(listArgs) {
986
986
return ( cb ) ? [ options , cb ] : [ options ] ;
987
987
}
988
988
989
- exports . connect = function ( /* [port,] [host,] [options,] [cb] */ ) {
990
- const argsLen = arguments . length ;
991
- var args = new Array ( argsLen ) ;
992
- for ( var i = 0 ; i < argsLen ; i ++ )
993
- args [ i ] = arguments [ i ] ;
989
+ exports . connect = function ( ...args /* [port,] [host,] [options,] [cb] */ ) {
994
990
args = normalizeConnectArgs ( args ) ;
995
991
var options = args [ 0 ] ;
996
992
var cb = args [ 1 ] ;
You can’t perform that action at this time.
0 commit comments