| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -270,7 +270,7 @@ Domain.prototype._errorHandler = function(er) { | |||
| 270 | 270 | // as this would throw an error, make the process exit, and thus | |
| 271 | 271 | // prevent the process 'uncaughtException' event from being emitted | |
| 272 | 272 | // if a listener is set. | |
| 273 | - if (EventEmitter.listenerCount(this, 'error') > 0) { | ||
| 273 | + if (this.listenerCount('error') > 0) { | ||
| 274 | 274 | // Clear the uncaughtExceptionCaptureCallback so that we know that, since | |
| 275 | 275 | // the top-level domain is not active anymore, it would be ok to abort on | |
| 276 | 276 | // an uncaught exception at this point | |
| Back | FazBrowse Home | New Git URL |
0 commit comments