Searched refs:mainPath (Results 1 – 3 of 3) sorted by relevance
/third_party/node/lib/internal/modules/ |
D | run_main.js | 19 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/ |
D | test-esm-symlink-type.js | 47 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/ |
D | test-policy-crypto-hash-tampering.js | 13 const mainPath = fixtures.path('policy', 'crypto-hash-tampering', 'main.js'); constant 19 …spawnSync(process.execPath, ['--experimental-policy', policyPath, mainPath], { encoding: 'utf8' });
|