vm: remove require('util') from lib/vm/source_text_module.js
PR-URL: https://github.com/nodejs/node/pull/27285 Refs: https://github.com/nodejs/node/issues/26546 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
parent
7167eb2f12
commit
e9fb92dc42
@ -2,7 +2,7 @@
|
||||
|
||||
const { Object, SafePromise } = primordials;
|
||||
|
||||
const { isModuleNamespaceObject } = require('util').types;
|
||||
const { isModuleNamespaceObject } = require('internal/util/types');
|
||||
const { URL } = require('internal/url');
|
||||
const { isContext } = internalBinding('contextify');
|
||||
const {
|
||||
@ -261,7 +261,7 @@ class SourceTextModule {
|
||||
o.linkingStatus = this.linkingStatus;
|
||||
o.url = this.url;
|
||||
o.context = this.context;
|
||||
return require('util').inspect(o, options);
|
||||
return require('internal/util/inspect').inspect(o, options);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user