diff --git a/lib/internal/encoding.js b/lib/internal/encoding.js index 3fbbbe1a2fefbd..5f61f34ac75d82 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); } } @@ -530,7 +530,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, {