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:
Yagiz Nizipli authored and RafaelGSS committed 2023-07-03 10:38:38 -03:00
1 parent 2b141c413f
commit 0da03f01ba
1 file changed
+1 -4
+1 -4
View File
@@ -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) {