We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db24174 commit 95b8b7eCopy full SHA for 95b8b7e
lib/domain.js
@@ -270,7 +270,7 @@ Domain.prototype._errorHandler = function(er) {
270
// as this would throw an error, make the process exit, and thus
271
// prevent the process 'uncaughtException' event from being emitted
272
// if a listener is set.
273
- if (EventEmitter.listenerCount(this, 'error') > 0) {
+ if (this.listenerCount('error') > 0) {
274
// Clear the uncaughtExceptionCaptureCallback so that we know that, since
275
// the top-level domain is not active anymore, it would be ok to abort on
276
// an uncaught exception at this point
0 commit comments