vm: remove usage of public util module
PR-URL: https://github.com/nodejs/node/pull/28460 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
2fd2dd7565
commit
a34cb28e60
@ -33,7 +33,10 @@ const {
|
|||||||
ERR_INVALID_ARG_TYPE,
|
ERR_INVALID_ARG_TYPE,
|
||||||
ERR_VM_MODULE_NOT_MODULE,
|
ERR_VM_MODULE_NOT_MODULE,
|
||||||
} = require('internal/errors').codes;
|
} = require('internal/errors').codes;
|
||||||
const { isModuleNamespaceObject, isArrayBufferView } = require('util').types;
|
const {
|
||||||
|
isModuleNamespaceObject,
|
||||||
|
isArrayBufferView,
|
||||||
|
} = require('internal/util/types');
|
||||||
const {
|
const {
|
||||||
validateInt32,
|
validateInt32,
|
||||||
validateUint32,
|
validateUint32,
|
||||||
|
@ -64,7 +64,6 @@ const expectedModules = new Set([
|
|||||||
'NativeModule path',
|
'NativeModule path',
|
||||||
'NativeModule timers',
|
'NativeModule timers',
|
||||||
'NativeModule url',
|
'NativeModule url',
|
||||||
'NativeModule util',
|
|
||||||
'NativeModule vm',
|
'NativeModule vm',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user