Skip to content

Commit e5383ad

Browse files
dnlupBridgeAR
authored andcommitted
lib: remove usage of require('util')
Remove the usage of `require('util').inspect`. PR-URL: #26779 Refs: #26546 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
1 parent cf1b9d3 commit e5383ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/encoding.js

+2-2
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

@@ -528,7 +528,7 @@ function makeTextDecoderJS() {
528528
obj[kHandle] = this[kHandle];
529529
}
530530
// Lazy to avoid circular dependency
531-
return require('util').inspect(obj, opts);
531+
return require('internal/util/inspect').inspect(obj, opts);
532532
}
533533
}));
534534
Object.defineProperties(TextDecoder.prototype, {

0 commit comments

Comments
 (0)