@@ -18,7 +18,7 @@ const { |
|
|
18 |
18 |
|
19 |
19 |
const { Readable, Writable } = require('stream'); |
20 |
20 |
const EventEmitter = require('events'); |
21 |
|
-const util = require('util'); |
|
21 |
+const { inspect } = require('internal/util/inspect'); |
22 |
22 |
|
23 |
23 |
let debuglog; |
24 |
24 |
function debug(...args) { |
@@ -122,7 +122,7 @@ MessagePort.prototype.close = function(cb) { |
|
|
122 |
122 |
MessagePortPrototype.close.call(this); |
123 |
123 |
}; |
124 |
124 |
|
125 |
|
-Object.defineProperty(MessagePort.prototype, util.inspect.custom, { |
|
125 |
+Object.defineProperty(MessagePort.prototype, inspect.custom, { |
126 |
126 |
enumerable: false, |
127 |
127 |
writable: false, |
128 |
128 |
value: function inspect() { // eslint-disable-line func-name-matching |