Home
last modified time | relevance | path

Searched refs:parentURL (Results 1 – 13 of 13) sorted by relevance

/third_party/node/lib/internal/modules/esm/
Dloader.js84 async resolve(specifier, parentURL) { argument
85 const isMain = parentURL === undefined;
86 if (!isMain && typeof parentURL !== 'string' && !isURLInstance(parentURL))
87 throw new ERR_INVALID_ARG_TYPE('parentURL', ['string', 'URL'], parentURL);
90 specifier, { parentURL, conditions: DEFAULT_CONDITIONS }, defaultResolve); property
241 async getModuleJob(specifier, parentURL) { argument
242 const url = await this.resolve(specifier, parentURL);
256 const inspectBrk = parentURL === undefined &&
258 job = new ModuleJob(this, url, loaderInstance, parentURL === undefined,
Dresolve.js785 function resolveAsCommonJS(specifier, parentURL) { argument
787 const parent = fileURLToPath(parentURL);
825 let { parentURL, conditions } = context;
826 if (parentURL && policy?.manifest) {
827 const redirects = policy.manifest.getDependencyMapper(parentURL);
840 parentURL,
865 if (parentURL && StringPrototypeStartsWith(parentURL, 'data:')) {
867 new URL(specifier, parentURL);
870 const isMain = parentURL === undefined;
872 parentURL = pathToFileURL(`${process.cwd()}/`).href;
[all …]
/third_party/node/test/fixtures/es-module-loaders/
Dloader-invalid-url.mjs2 export async function resolve(specifier, { parentURL }, defaultResolve) { field
3 if (parentURL && specifier === '../fixtures/es-modules/test-esm-ok.mjs') {
8 return defaultResolve(specifier, {parentURL}, defaultResolve); field
Dloader-invalid-format.mjs1 export async function resolve(specifier, { parentURL }, defaultResolve) { field
2 if (parentURL && specifier === '../fixtures/es-modules/test-esm-ok.mjs') {
7 return defaultResolve(specifier, {parentURL}, defaultResolve); field
Dnot-found-assert-loader.mjs6 export async function resolve(specifier, { parentURL }, defaultResolve) { field
9 return defaultResolve(specifier, {parentURL}, defaultResolve); field
12 await defaultResolve(specifier, {parentURL}, defaultResolve); field
Dexample-loader.mjs11 export function resolve(specifier, { parentURL = baseURL }, defaultResolve) { property
19 // return defaultResolve(specifier, {parentURL}, defaultResolve);
23 const resolved = new URL(specifier, parentURL);
Dmissing-dynamic-instantiate-hook.mjs1 export function resolve(specifier, { parentURL }, defaultResolve) { field
7 return defaultResolve(specifier, {parentURL}, defaultResolve); field
Dloader-with-dep.mjs6 export function resolve (specifier, { parentURL }, defaultResolve) { field
8 url: defaultResolve(specifier, {parentURL}, defaultResolve).url, field
Dloader-shared-dep.mjs8 export function resolve(specifier, { parentURL }, defaultResolve) { field
10 return defaultResolve(specifier, {parentURL}, defaultResolve); field
Dloader-unknown-builtin-module.mjs1 export async function resolve(specifier, { parentURL }, defaultResolve) { field
7 return defaultResolve(specifier, {parentURL}, defaultResolve); field
/third_party/node/lib/
Drepl.js445 let parentURL;
450 parentURL = pathToFileURL(path.join(process.cwd(), 'repl')).href;
462 return asyncESM.ESMLoader.import(specifier, parentURL);
484 let parentURL;
489 parentURL = pathToFileURL(path.join(process.cwd(), 'repl')).href;
504 return asyncESM.ESMLoader.import(specifier, parentURL);
/third_party/node/doc/api/
Desm.md287 description: Add support for WHATWG `URL` object to `parentURL` parameter.
620 * `parentURL` {string}
646 * parentURL: !(string | undefined),
652 const { parentURL = null } = context;
657 url: parentURL ?
658 new URL(specifier, parentURL).href :
863 const { parentURL = null } = context;
872 } else if (parentURL && parentURL.startsWith('https://')) {
874 url: new URL(specifier, parentURL).href
946 const { parentURL = baseURL } = context;
[all …]
/third_party/node/tools/
Dlint-md.mjs20433 * @param {{parentURL?: string, conditions?: string[]}} context
20437 const {parentURL} = context;
20456 if (parentURL.startsWith('data:')) {
20458 new URL$1(specifier, parentURL);
20462 let url = moduleResolve(specifier, new URL$1(parentURL), conditions);
20496 return defaultResolve(specifier, {parentURL: parent}).url property