Searched refs:CJSModule (Results 1 – 5 of 5) sorted by relevance
/third_party/node/lib/internal/modules/esm/ |
D | translators.js | 35 Module: CJSModule, 169 exports = CJSModule._load(filename, undefined, isMain); 194 let module = CJSModule._cache[filename]; 202 module = new CJSModule(filename); 204 module.paths = CJSModule._nodeModulePaths(module.path); 205 CJSModule._cache[filename] = module; 230 module.paths = CJSModule._nodeModulePaths(module.path); 235 resolved = CJSModule._resolveFilename(reexport, module); 240 if ((ext === '.js' || ext === '.cjs' || !CJSModule._extensions[ext]) && 277 module = CJSModule._cache[modulePath]; [all …]
|
D | resolve.js | 61 const { Module: CJSModule } = require('internal/modules/cjs/loader'); 958 const tmpModule = new CJSModule(parent, null); 959 tmpModule.paths = CJSModule._nodeModulePaths(parent); 961 let found = CJSModule._resolveFilename(specifier, tmpModule, false);
|
/third_party/node/lib/internal/util/ |
D | inspector.js | 68 const CJSModule = require('internal/modules/cjs/loader').Module; 70 const consoleAPIModule = new CJSModule('<inspector console>'); 73 ArrayPrototypePushApply(consoleAPIModule.paths, CJSModule._nodeModulePaths(cwd)); 74 ArrayPrototypePushApply(consoleAPIModule.paths, CJSModule.globalPaths);
|
/third_party/node/lib/internal/process/ |
D | execution.js | 54 const CJSModule = require('internal/modules/cjs/loader').Module; 61 const module = new CJSModule(name); 63 module.paths = CJSModule._nodeModulePaths(cwd);
|
/third_party/node/lib/ |
D | repl.js | 126 const CJSModule = require('internal/modules/cjs/loader').Module; constant 128 CJSModule.builtinModules, 220 module.paths = CJSModule._nodeModulePaths(module.filename); 1102 const replModule = new CJSModule('<repl>'); 1103 replModule.paths = CJSModule._resolveLookupPaths('<repl>', parentModule); 1334 ArrayPrototypePushApply(paths, CJSModule.globalPaths);
|