diff options
author | toshi1127 <toshi.matsumoto.2n@stu.hosei.ac.jp> | 2019-03-20 15:52:50 +0300 |
---|---|---|
committer | ZYSzys <zyszys98@gmail.com> | 2019-03-22 19:09:48 +0300 |
commit | 01a129635cad8f645b7b2aa12526eeb2ba826527 (patch) | |
tree | ae3b14ca18d6e5897086e91141ee93a4a727a6f1 /lib/internal/worker | |
parent | 76387c1c2070cf444a0bd247c86c247c167ec742 (diff) |
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.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/worker/io.js b/lib/internal/worker/io.js index 664055b5c5b..ece0f2741a3 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 |