Skip to content

Commit e9fb92d

Browse files
freestrawsZYSzys
freestraws
authored andcommitted
vm: remove require('util') from lib/vm/source_text_module.js
PR-URL: #27285 Refs: #26546 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
1 parent 7167eb2 commit e9fb92d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/vm/source_text_module.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const { Object, SafePromise } = primordials;
44

5-
const { isModuleNamespaceObject } = require('util').types;
5+
const { isModuleNamespaceObject } = require('internal/util/types');
66
const { URL } = require('internal/url');
77
const { isContext } = internalBinding('contextify');
88
const {
@@ -261,7 +261,7 @@ class SourceTextModule {
261261
o.linkingStatus = this.linkingStatus;
262262
o.url = this.url;
263263
o.context = this.context;
264-
return require('util').inspect(o, options);
264+
return require('internal/util/inspect').inspect(o, options);
265265
}
266266
}
267267

0 commit comments

Comments
 (0)