summaryrefslogtreecommitdiff
path: root/lib/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events.js')
-rw-r--r--lib/events.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/events.js b/lib/events.js
index 8a676773b6..6a141f44d8 100644
--- a/lib/events.js
+++ b/lib/events.js
@@ -158,6 +158,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) {
try {
const { kExpandStackSymbol } = require('internal/util');
const capture = {};
+ // eslint-disable-next-line no-restricted-syntax
Error.captureStackTrace(capture, EventEmitter.prototype.emit);
Object.defineProperty(er, kExpandStackSymbol, {
value: enhanceStackTrace.bind(null, er, capture),