diff --git a/lib/internal/encoding.js b/lib/internal/encoding.js index 244e8666a9bc52..578261427ad3a2 100644 --- a/lib/internal/encoding.js +++ b/lib/internal/encoding.js @@ -327,7 +327,7 @@ class TextEncoder { }); obj.encoding = this.encoding; // Lazy to avoid circular dependency - return require('util').inspect(obj, opts); + return require('internal/util/inspect').inspect(obj, opts); } } @@ -528,7 +528,7 @@ function makeTextDecoderJS() { obj[kHandle] = this[kHandle]; } // Lazy to avoid circular dependency - return require('util').inspect(obj, opts); + return require('internal/util/inspect').inspect(obj, opts); } })); Object.defineProperties(TextDecoder.prototype, {