mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
lib: remove duplicated requires in check_syntax
PR-URL: https://github.com/nodejs/node/pull/48508 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
2b141c413f
commit
0da03f01ba
1 file changed
+1
-4
@@ -4,7 +4,7 @@
|
||||
// instead of actually running the file.
|
||||
|
||||
const { getOptionValue } = require('internal/options');
|
||||
const { URL } = require('internal/url');
|
||||
const { URL, pathToFileURL } = require('internal/url');
|
||||
const {
|
||||
prepareMainThreadExecution,
|
||||
markBootstrapComplete,
|
||||
@@ -14,8 +14,6 @@ const {
|
||||
readStdin,
|
||||
} = require('internal/process/execution');
|
||||
|
||||
const { pathToFileURL } = require('url');
|
||||
|
||||
const {
|
||||
Module: {
|
||||
_resolveFilename: resolveCJSModuleName,
|
||||
@@ -49,7 +47,6 @@ if (process.argv[1] && process.argv[1] !== '-') {
|
||||
}
|
||||
|
||||
function loadESMIfNeeded(cb) {
|
||||
const { getOptionValue } = require('internal/options');
|
||||
const hasModulePreImport = getOptionValue('--import').length > 0;
|
||||
|
||||
if (hasModulePreImport) {
|
||||
|
||||
Reference in new issue
Block a user