Home
last modified time | relevance | path

Searched refs:importAttributes (Results 1 – 22 of 22) sorted by relevance

/third_party/node/lib/internal/modules/esm/
Dloader.js218 importModuleDynamically: (specifier, { url }, importAttributes) => {
219 return this.import(specifier, url, importAttributes);
249 async getModuleJob(specifier, parentURL, importAttributes) { argument
250 const resolveResult = await this.resolve(specifier, parentURL, importAttributes);
251 return this.getJobFromResolveResult(resolveResult, parentURL, importAttributes);
254 getJobFromResolveResult(resolveResult, parentURL, importAttributes) { argument
256 const resolvedImportAttributes = resolveResult.importAttributes ?? importAttributes;
282 #createModuleJob(url, importAttributes, parentURL, format) { argument
290 importAttributes, property
315 importAttributes,
[all …]
Dassert.js57 importAttributes = { __proto__: null }) { argument
58 const keys = ObjectKeys(importAttributes);
61 throw new ERR_IMPORT_ATTRIBUTE_UNSUPPORTED(keys[i], importAttributes[keys[i]]);
75 if (!ObjectPrototypeHasOwnProperty(importAttributes, 'type')) {
78 return handleInvalidType(url, importAttributes.type);
80 case importAttributes.type:
87 if (!ObjectPrototypeHasOwnProperty(importAttributes, 'type')) {
91 return handleInvalidType(url, importAttributes.type);
Dload.js82 importAttributes,
87 …if (importAttributes == null && !('importAttributes' in context) && 'importAssertions' in context)…
89 importAttributes = context.importAssertions;
93 importAttributes, property
103 validateAttributes(url, format, importAttributes);
Dmodule_map.js37 serializeKey(specifier, importAttributes) { argument
42 const keys = ObjectKeys(importAttributes);
51 (key) => JSONStringify(key) + JSONStringify(importAttributes[key])),
Dmodule_job.js53 constructor(loader, url, importAttributes = { __proto__: null }, argument
56 this.importAttributes = importAttributes;
Dhooks.js89 return this.importAttributes;
264 importAttributes = { __proto__: null }, argument
271 importAttributes, property
349 resolvedImportAttributes = resolution.importAttributes;
379 importAttributes: resolvedImportAttributes,
/third_party/node/test/fixtures/es-module-loaders/
Dassertionless-json-import.mjs5 const noAttributesSpecified = context.importAttributes.type == null;
8 context.importAttributes.type = 'whatever';
17 result.importAttributes = {
18 ...(result.importAttributes ?? context.importAttributes),
Dhooks-input.mjs25 assert.deepStrictEqual(context.importAttributes, {});
30 assert.deepStrictEqual(context.importAttributes, {
38 'importAttributes',
62 assert.deepStrictEqual(context.importAttributes, {});
66 assert.deepStrictEqual(context.importAttributes, {
76 'importAttributes',
Dloader-invalid-url.mjs1 export async function resolve(specifier, { parentURL, importAttributes }, next) { field
6 importAttributes,
Dloader-with-dep.mjs6 export async function resolve(specifier, { parentURL, importAttributes }, defaultResolve) { field
8 url: (await defaultResolve(specifier, { parentURL, importAttributes }, defaultResolve)).url, field
Dnot-found-assert-loader.mjs6 export async function resolve(specifier, { importAttributes }, next) { field
18 importAttributes,
Dbuiltin-named-exports-loader.mjs16 importAttributes: context.importAttributes,
Dstring-sources.mjs26 importAttributes: context.importAttributes,
Dhooks-custom.mjs9 export function resolve(specifier, { importAttributes }, next) { field
27 importAttributes,
Dloader-invalid-format.mjs1 export async function resolve(specifier, { parentURL, importAttributes }, next) { field
/third_party/node/lib/internal/process/
Dexecution.js85 async function importModuleDynamically(specifier, _, importAttributes) { argument
87 return loader.import(specifier, baseUrl, importAttributes);
/third_party/node/test/es-module/
Dtest-esm-virtual-json.mjs15 if (context.importAttributes.type === 'json') {
Dtest-esm-import-assertion-warning.mjs34 assert.match(stderr, /Use `importAttributes` instead of `importAssertions`/);
/third_party/node/doc/api/
Dmodule.md462 `context.importAttributes`. Using the old name is still
483 * `importAttributes` {Object} An object whose key-value pairs represent the
495 * `importAttributes` {Object|undefined} The import attributes to use when
514 `importAttributes` object if the module should be cached with different
578 * `importAttributes` {Object}
Dvm.md106 * `importAttributes` {Object} The `"with"` value passed to the
775 * `importAttributes` {Object} The `"assert"` value passed to the
1035 * `importAttributes` {Object} The `"with"` value passed to the
1261 * `importAttributes` {Object} The `"with"` value passed to the
1362 * `importAttributes` {Object} The `"with"` value passed to the
1444 * `importAttributes` {Object} The `"with"` value passed to the
/third_party/node/lib/internal/modules/cjs/
Dloader.js1254 async function importModuleDynamically(specifier, _, importAttributes) { argument
1257 importAttributes);
/third_party/node/lib/
Drepl.js465 async function importModuleDynamically(specifier, _, importAttributes) { argument
468 importAttributes);