We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eca9bc commit f666f5aCopy full SHA for f666f5a
lib/events.js
@@ -50,6 +50,7 @@ const {
50
SymbolAsyncIterator,
51
} = primordials;
52
const kRejection = SymbolFor('nodejs.rejection');
53
+const { inspect } = require('internal/util/inspect');
54
55
let spliceOne;
56
@@ -63,10 +64,6 @@ const {
63
64
},
65
} = require('internal/errors');
66
-const {
67
- inspect
68
-} = require('internal/util/inspect');
69
-
70
const {
71
validateAbortSignal,
72
validateBoolean,
@@ -372,7 +369,6 @@ EventEmitter.prototype.emit = function emit(type, ...args) {
372
369
}
373
370
374
371
let stringifiedEr;
375
- const { inspect } = require('internal/util/inspect');
376
try {
377
stringifiedEr = inspect(er);
378
} catch {
0 commit comments