Lines Matching refs:url
105 function errPath(url) { argument
106 const parsed = new URL(url);
110 return url;
113 async function importModuleDynamically(specifier, { url }) { field
114 return asyncESM.ESMLoader.import(specifier, url);
123 error.url : PromiseReject(error))
128 function initializeImportMeta(meta, { url }) { field
131 meta.resolve = createImportMetaResolve(url);
132 meta.url = url;
136 translators.set('module', async function moduleStrategy(url) { argument
138 url, { format: 'module' }, defaultGetSource);
141 source, { url, format: 'module' }, defaultTransformSource)); property
143 maybeCacheSourceMap(url, source);
144 debug(`Translating StandardModule ${url}`);
145 const module = new ModuleWrap(url, undefined, source, 0, 0);
178 translators.set('commonjs', async function commonjsStrategy(url, isMain) { argument
179 debug(`Translating CJSModule ${url}`);
181 let filename = internalURLModule.fileURLToPath(new URL(url));
190 return new ModuleWrap(url, undefined, namesWithDefault, function() {
191 debug(`Loading CJSModule ${url}`);
279 translators.set('builtin', async function builtinStrategy(url) { argument
280 debug(`Translating BuiltinModule ${url}`);
282 const id = StringPrototypeSlice(url, 5);
283 const module = loadNativeModule(id, url);
284 if (!StringPrototypeStartsWith(url, 'node:') || !module) {
285 throw new ERR_UNKNOWN_BUILTIN_MODULE(url);
287 debug(`Loading BuiltinModule ${url}`);
292 translators.set('json', async function jsonStrategy(url) { argument
294 debug(`Translating JSONModule ${url}`);
295 debug(`Loading JSONModule ${url}`);
296 const pathname = StringPrototypeStartsWith(url, 'file:') ?
297 fileURLToPath(url) : null;
306 return new ModuleWrap(url, undefined, ['default'], function() {
312 url, { format: 'json' }, defaultGetSource);
315 source, { url, format: 'json' }, defaultTransformSource)); property
324 return new ModuleWrap(url, undefined, ['default'], function() {
340 err.message = errPath(url) + ': ' + err.message;
346 return new ModuleWrap(url, undefined, ['default'], function() {
347 debug(`Parsing JSONModule ${url}`);
353 translators.set('wasm', async function(url) { argument
356 url, { format: 'wasm' }, defaultGetSource);
359 source, { url, format: 'wasm' }, defaultTransformSource)); property
361 debug(`Translating WASMModule ${url}`);
366 err.message = errPath(url) + ': ' + err.message;
377 return createDynamicModule(imports, exports, url, (reflect) => {