Home
last modified time | relevance | path

Searched refs:mainPath (Results 1 – 3 of 3) sorted by relevance

/third_party/node/lib/internal/modules/
Drun_main.js19 let mainPath = Module._findPath(path.resolve(main), null, true);
20 if (!mainPath)
25 mainPath = toRealPath(mainPath);
27 return mainPath;
30 function shouldUseESMLoader(mainPath) { argument
48 if (mainPath && StringPrototypeEndsWith(mainPath, '.mjs'))
50 if (!mainPath || StringPrototypeEndsWith(mainPath, '.cjs'))
52 const pkg = readPackageScope(mainPath);
56 function runMainESM(mainPath) { argument
61 const main = path.isAbsolute(mainPath) ?
[all …]
/third_party/node/test/es-module/
Dtest-esm-symlink-type.js47 const mainPath = path.join(tmpDir, symlink.source); constant
48 fs.symlinkSync(symlink.target, mainPath);
58 exec(process.execPath, [mainPath], opts, common.mustCall(
/third_party/node/test/parallel/
Dtest-policy-crypto-hash-tampering.js13 const mainPath = fixtures.path('policy', 'crypto-hash-tampering', 'main.js'); constant
19 …spawnSync(process.execPath, ['--experimental-policy', policyPath, mainPath], { encoding: 'utf8' });