summaryrefslogtreecommitdiff
path: root/lib/internal/encoding.js
diff options
context:
space:
mode:
authordnlup <dwon.dnl@gmail.com>2019-03-19 15:04:38 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-25 00:20:03 +0100
commite5383adb25a74d1d3588cc447b13a158d0b54852 (patch)
tree647cabccd9dc0aa13548957436d8a0fa8efae6d1 /lib/internal/encoding.js
parentcf1b9d395dfbde4a0a4c50e2b72fcede9d899704 (diff)
downloadandroid-node-v8-e5383adb25a74d1d3588cc447b13a158d0b54852.tar.gz
android-node-v8-e5383adb25a74d1d3588cc447b13a158d0b54852.tar.bz2
android-node-v8-e5383adb25a74d1d3588cc447b13a158d0b54852.zip
lib: remove usage of require('util')
Remove the usage of `require('util').inspect`. PR-URL: https://github.com/nodejs/node/pull/26779 Refs: https://github.com/nodejs/node/issues/26546 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'lib/internal/encoding.js')
-rw-r--r--lib/internal/encoding.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/encoding.js b/lib/internal/encoding.js
index 244e8666a9..578261427a 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, {