Skip to content

Commit 1329d0a

Browse files
committed
lib: remove usage of require('util')
Remove the usage of `require('util').inspect`. Refs: #26546
1 parent 197dbf6 commit 1329d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/encoding.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class TextEncoder {
327327
});
328328
obj.encoding = this.encoding;
329329
// Lazy to avoid circular dependency
330-
return require('util').inspect(obj, opts);
330+
return require('internal/util/inspect').inspect(obj, opts);
331331
}
332332
}
333333

@@ -530,7 +530,7 @@ function makeTextDecoderJS() {
530530
obj[kHandle] = this[kHandle];
531531
}
532532
// Lazy to avoid circular dependency
533-
return require('util').inspect(obj, opts);
533+
return require('internal/util/inspect').inspect(obj, opts);
534534
}
535535
}));
536536
Object.defineProperties(TextDecoder.prototype, {

0 commit comments

Comments
 (0)