diff --git a/lib/internal/streams/buffer_list.js b/lib/internal/streams/buffer_list.js index 715d5d201d4df4..234ffbe51b3a52 100644 --- a/lib/internal/streams/buffer_list.js +++ b/lib/internal/streams/buffer_list.js @@ -1,7 +1,7 @@ 'use strict'; const { Buffer } = require('buffer'); -const { inspect } = require('internal/util/inspect'); +const { inspect } = require('util'); module.exports = class BufferList { constructor() { diff --git a/lib/stream.js b/lib/stream.js index 4918434167c535..e6c59e2483410b 100644 --- a/lib/stream.js +++ b/lib/stream.js @@ -45,7 +45,7 @@ Stream.Stream = Stream; // Internal utilities try { - const types = require('internal/util/types'); + const types = require('util').types; if (types && typeof types.isUint8Array === 'function') { Stream._isUint8Array = types.isUint8Array; } else {