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
6 changes: 4 additions & 2 deletions lib/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ const {
} = require('internal/errors').codes;
const Transform = require('_stream_transform');
const {
deprecate,
deprecate
} = require('internal/util');
const {
types: {
isAnyArrayBuffer,
digitaldina marked this conversation as resolved.
Show resolved Hide resolved
isArrayBufferView
digitaldina marked this conversation as resolved.
Show resolved Hide resolved
}
} = require('util');
} = 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