Skip to content

Commit

Permalink
worker: remove usage of require('util')
Browse files Browse the repository at this point in the history
PR-URL: #26810
Refs: #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>
  • Loading branch information
toshi1127 authored and targos committed Mar 28, 2019
1 parent 370fc0d commit cf5cb8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/worker/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cf5cb8d

Please sign in to comment.