aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/worker
diff options
context:
space:
mode:
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