@@ -181,8 +181,8 @@ class Client extends EventEmitter {
181
181
con . on ( 'authenticationSASLContinue' , this . _handleAuthSASLContinue . bind ( this ) )
182
182
con . on ( 'authenticationSASLFinal' , this . _handleAuthSASLFinal . bind ( this ) )
183
183
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 ) )
186
186
con . on ( 'readyForQuery' , this . _handleReadyForQuery . bind ( this ) )
187
187
con . on ( 'notice' , this . _handleNotice . bind ( this ) )
188
188
con . on ( 'rowDescription' , this . _handleRowDescription . bind ( this ) )
@@ -295,7 +295,7 @@ class Client extends EventEmitter {
295
295
296
296
// if we receieve an error event or error message
297
297
// during the connection process we handle it here
298
- _handleErrorWhileConnecting = ( err ) => {
298
+ _handleErrorWhileConnecting ( err ) {
299
299
if ( this . _connectionError ) {
300
300
// TODO(bmc): this is swallowing errors - we shouldn't do this
301
301
return
@@ -311,7 +311,7 @@ class Client extends EventEmitter {
311
311
// if we're connected and we receive an error event from the connection
312
312
// this means the socket is dead - do a hard abort of all queries and emit
313
313
// the socket error on the client as well
314
- _handleErrorEvent = ( err ) => {
314
+ _handleErrorEvent ( err ) {
315
315
if ( this . _connecting ) {
316
316
return this . _handleErrorWhileConnecting ( err )
317
317
}
@@ -321,7 +321,7 @@ class Client extends EventEmitter {
321
321
}
322
322
323
323
// handle error messages from the postgres backend
324
- _handleErrorMessage = ( msg ) => {
324
+ _handleErrorMessage ( msg ) {
325
325
if ( this . _connecting ) {
326
326
return this . _handleErrorWhileConnecting ( msg )
327
327
}
0 commit comments