Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove public util use in lib/vm.js and lib/zlib.js #26716

Closed
wants to merge 16 commits into from
5 changes: 4 additions & 1 deletion lib/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const {
ERR_INVALID_ARG_TYPE,
ERR_VM_MODULE_NOT_MODULE,
} = require('internal/errors').codes;
const { isModuleNamespaceObject, isArrayBufferView } = require('util').types;
const {
isModuleNamespaceObject,
isArrayBufferView
} = require('internal/util/types');
const {
validateInt32,
validateUint32,
Expand Down
12 changes: 6 additions & 6 deletions lib/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const {
} = require('internal/errors').codes;
const Transform = require('_stream_transform');
const {
deprecate,
types: {
isAnyArrayBuffer,
isArrayBufferView
}
} = require('util');
deprecate
} = require('internal/util');
const {
isAnyArrayBuffer,
isArrayBufferView
} = require('internal/util/types');
digitaldina marked this conversation as resolved.
Show resolved Hide resolved
const binding = internalBinding('zlib');
const assert = require('internal/assert');
const {
Expand Down
1 change: 0 additions & 1 deletion test/parallel/test-bootstrap-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const expectedModules = new Set([
'Internal Binding trace_events',
'Internal Binding types',
'Internal Binding url',
'Internal Binding util',
'NativeModule buffer',
'NativeModule events',
'NativeModule fs',
Expand Down