Skip to content

Commit

Permalink
vm: remove require('util') from lib/vm/source_text_module.js
Browse files Browse the repository at this point in the history
PR-URL: #27285
Refs: #26546
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
  • Loading branch information
freestraws authored and ZYSzys committed Apr 21, 2019
1 parent 7167eb2 commit e9fb92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/vm/source_text_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit e9fb92d

Please sign in to comment.