@@ -181,8 +181,8 @@ class Client extends EventEmitter {
181181 con . on ( 'authenticationSASLContinue' , this . _handleAuthSASLContinue . bind ( this ) )
182182 con . on ( 'authenticationSASLFinal' , this . _handleAuthSASLFinal . bind ( this ) )
183183 con . on ( 'backendKeyData' , this . _handleBackendKeyData . bind ( this ) )
184- con . on ( 'error' , this . _handleErrorEvent )
185- con . on ( 'errorMessage' , this . _handleErrorMessage )
184+ con . on ( 'error' , this . _handleErrorEvent . bind ( this ) )
185+ con . on ( 'errorMessage' , this . _handleErrorMessage . bind ( this ) )
186186 con . on ( 'readyForQuery' , this . _handleReadyForQuery . bind ( this ) )
187187 con . on ( 'notice' , this . _handleNotice . bind ( this ) )
188188 con . on ( 'rowDescription' , this . _handleRowDescription . bind ( this ) )
@@ -295,7 +295,7 @@ class Client extends EventEmitter {
295295
296296 // if we receieve an error event or error message
297297 // during the connection process we handle it here
298- _handleErrorWhileConnecting = ( err ) => {
298+ _handleErrorWhileConnecting ( err ) {
299299 if ( this . _connectionError ) {
300300 // TODO(bmc): this is swallowing errors - we shouldn't do this
301301 return
@@ -311,7 +311,7 @@ class Client extends EventEmitter {
311311 // if we're connected and we receive an error event from the connection
312312 // this means the socket is dead - do a hard abort of all queries and emit
313313 // the socket error on the client as well
314- _handleErrorEvent = ( err ) => {
314+ _handleErrorEvent ( err ) {
315315 if ( this . _connecting ) {
316316 return this . _handleErrorWhileConnecting ( err )
317317 }
@@ -321,7 +321,7 @@ class Client extends EventEmitter {
321321 }
322322
323323 // handle error messages from the postgres backend
324- _handleErrorMessage = ( msg ) => {
324+ _handleErrorMessage ( msg ) {
325325 if ( this . _connecting ) {
326326 return this . _handleErrorWhileConnecting ( msg )
327327 }
0 commit comments