summaryrefslogtreecommitdiff
path: root/lib/internal/worker
diff options
context:
space:
mode:
authortoshi1127 <toshi.matsumoto.2n@stu.hosei.ac.jp>2019-03-20 21:52:50 +0900
committerZYSzys <zyszys98@gmail.com>2019-03-23 00:09:48 +0800
commit01a129635cad8f645b7b2aa12526eeb2ba826527 (patch)
treeae3b14ca18d6e5897086e91141ee93a4a727a6f1 /lib/internal/worker
parent76387c1c2070cf444a0bd247c86c247c167ec742 (diff)
downloadandroid-node-v8-01a129635cad8f645b7b2aa12526eeb2ba826527.tar.gz
android-node-v8-01a129635cad8f645b7b2aa12526eeb2ba826527.tar.bz2
android-node-v8-01a129635cad8f645b7b2aa12526eeb2ba826527.zip
worker: remove usage of require('util')
PR-URL: https://github.com/nodejs/node/pull/26810 Refs: https://github.com/nodejs/node/issues/26546 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/internal/worker')
-rw-r--r--lib/internal/worker/io.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/worker/io.js b/lib/internal/worker/io.js
index 664055b5c5..ece0f2741a 100644
--- a/lib/internal/worker/io.js
+++ b/lib/internal/worker/io.js
@@ -18,7 +18,7 @@ const {
const { Readable, Writable } = require('stream');
const EventEmitter = require('events');
-const util = require('util');
+const { inspect } = require('internal/util/inspect');
let debuglog;
function debug(...args) {
@@ -122,7 +122,7 @@ MessagePort.prototype.close = function(cb) {
MessagePortPrototype.close.call(this);
};
-Object.defineProperty(MessagePort.prototype, util.inspect.custom, {
+Object.defineProperty(MessagePort.prototype, inspect.custom, {
enumerable: false,
writable: false,
value: function inspect() { // eslint-disable-line func-name-matching