@@ -582,15 +582,15 @@ function doShutdown(options){
582582function submitShutdown ( options ) {
583583const type = this [ kType ] ;
584584debug ( `Http2Session ${ sessionName ( type ) } : submitting shutdown request` ) ;
585- const fn = doShutdown . bind ( this , options ) ;
585+ const shutdownFn = doShutdown . bind ( this , options ) ;
586586if ( type === NGHTTP2_SESSION_SERVER && options . graceful === true ) {
587587// first send a shutdown notice
588588this [ kHandle ] . shutdownNotice ( ) ;
589589// then, on flip of the event loop, do the actual shutdown
590- setImmediate ( fn ) ;
590+ setImmediate ( shutdownFn ) ;
591591return ;
592592}
593- fn ( ) ;
593+ shutdownFn ( ) ;
594594}
595595
596596function finishSessionDestroy ( socket ) {
@@ -877,12 +877,12 @@ class Http2Session extends EventEmitter{
877877debug ( `Http2Session ${ sessionName ( this [ kType ] ) } : sending settings` ) ;
878878
879879state . pendingAck ++ ;
880- const fn = submitSettings . bind ( this , settings ) ;
880+ const settingsFn = submitSettings . bind ( this , settings ) ;
881881if ( state . connecting ) {
882- this . once ( 'connect' , fn ) ;
882+ this . once ( 'connect' , settingsFn ) ;
883883return ;
884884}
885- fn ( ) ;
885+ settingsFn ( ) ;
886886}
887887
888888// Destroy the Http2Session
@@ -968,14 +968,14 @@ class Http2Session extends EventEmitter{
968968this . on ( 'shutdown' , callback ) ;
969969}
970970
971- const fn = submitShutdown . bind ( this , options ) ;
971+ const shutdownFn = submitShutdown . bind ( this , options ) ;
972972if ( state . connecting ) {
973- this . once ( 'connect' , fn ) ;
973+ this . once ( 'connect' , shutdownFn ) ;
974974return ;
975975}
976976
977977debug ( `Http2Session ${ sessionName ( type ) } : sending shutdown` ) ;
978- fn ( ) ;
978+ shutdownFn ( ) ;
979979}
980980
981981_onTimeout ( ) {
@@ -1379,12 +1379,12 @@ class Http2Stream extends Duplex{
13791379if ( code < 0 || code > kMaxInt )
13801380throw new errors . RangeError ( 'ERR_OUT_OF_RANGE' , 'code' ) ;
13811381
1382- const fn = submitRstStream . bind ( this , code ) ;
1382+ const rstStreamFn = submitRstStream . bind ( this , code ) ;
13831383if ( this [ kID ] === undefined ) {
1384- this . once ( 'ready' , fn ) ;
1384+ this . once ( 'ready' , rstStreamFn ) ;
13851385return ;
13861386}
1387- fn ( ) ;
1387+ rstStreamFn ( ) ;
13881388}
13891389
13901390rstWithNoError ( ) {
@@ -1415,12 +1415,12 @@ class Http2Stream extends Duplex{
14151415options = Object . assign ( { } , options ) ;
14161416validatePriorityOptions ( options ) ;
14171417
1418- const fn = submitPriority . bind ( this , options ) ;
1418+ const priorityFn = submitPriority . bind ( this , options ) ;
14191419if ( this [ kID ] === undefined ) {
1420- this . once ( 'ready' , fn ) ;
1420+ this . once ( 'ready' , priorityFn ) ;
14211421return ;
14221422}
1423- fn ( ) ;
1423+ priorityFn ( ) ;
14241424}
14251425
14261426// Called by this.destroy().
0 commit comments