lib: remove usage of require('util') · nodejs/node@bf2b57e (original) (raw)

Original file line number Diff line number Diff line change
@@ -327,7 +327,7 @@ class TextEncoder {
327 327 });
328 328 obj.encoding = this.encoding;
329 329 // Lazy to avoid circular dependency
330 -return require('util').inspect(obj, opts);
330 +return require('internal/util/inspect').inspect(obj, opts);
331 331 }
332 332 }
333 333
@@ -528,7 +528,7 @@ function makeTextDecoderJS() {
528 528 obj[kHandle] = this[kHandle];
529 529 }
530 530 // Lazy to avoid circular dependency
531 -return require('util').inspect(obj, opts);
531 +return require('internal/util/inspect').inspect(obj, opts);
532 532 }
533 533 }));
534 534 Object.defineProperties(TextDecoder.prototype, {