/third_party/node/lib/internal/modules/esm/ |
D | loader.js | 218 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 …]
|
D | assert.js | 57 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);
|
D | load.js | 82 importAttributes, 87 …if (importAttributes == null && !('importAttributes' in context) && 'importAssertions' in context)… 89 importAttributes = context.importAssertions; 93 importAttributes, property 103 validateAttributes(url, format, importAttributes);
|
D | module_map.js | 37 serializeKey(specifier, importAttributes) { argument 42 const keys = ObjectKeys(importAttributes); 51 (key) => JSONStringify(key) + JSONStringify(importAttributes[key])),
|
D | module_job.js | 53 constructor(loader, url, importAttributes = { __proto__: null }, argument 56 this.importAttributes = importAttributes;
|
D | hooks.js | 89 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/ |
D | assertionless-json-import.mjs | 5 const noAttributesSpecified = context.importAttributes.type == null; 8 context.importAttributes.type = 'whatever'; 17 result.importAttributes = { 18 ...(result.importAttributes ?? context.importAttributes),
|
D | hooks-input.mjs | 25 assert.deepStrictEqual(context.importAttributes, {}); 30 assert.deepStrictEqual(context.importAttributes, { 38 'importAttributes', 62 assert.deepStrictEqual(context.importAttributes, {}); 66 assert.deepStrictEqual(context.importAttributes, { 76 'importAttributes',
|
D | loader-invalid-url.mjs | 1 export async function resolve(specifier, { parentURL, importAttributes }, next) { field 6 importAttributes,
|
D | loader-with-dep.mjs | 6 export async function resolve(specifier, { parentURL, importAttributes }, defaultResolve) { field 8 url: (await defaultResolve(specifier, { parentURL, importAttributes }, defaultResolve)).url, field
|
D | not-found-assert-loader.mjs | 6 export async function resolve(specifier, { importAttributes }, next) { field 18 importAttributes,
|
D | builtin-named-exports-loader.mjs | 16 importAttributes: context.importAttributes,
|
D | string-sources.mjs | 26 importAttributes: context.importAttributes,
|
D | hooks-custom.mjs | 9 export function resolve(specifier, { importAttributes }, next) { field 27 importAttributes,
|
D | loader-invalid-format.mjs | 1 export async function resolve(specifier, { parentURL, importAttributes }, next) { field
|
/third_party/node/lib/internal/process/ |
D | execution.js | 85 async function importModuleDynamically(specifier, _, importAttributes) { argument 87 return loader.import(specifier, baseUrl, importAttributes);
|
/third_party/node/test/es-module/ |
D | test-esm-virtual-json.mjs | 15 if (context.importAttributes.type === 'json') {
|
D | test-esm-import-assertion-warning.mjs | 34 assert.match(stderr, /Use `importAttributes` instead of `importAssertions`/);
|
/third_party/node/doc/api/ |
D | module.md | 462 `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}
|
D | vm.md | 106 * `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/ |
D | loader.js | 1254 async function importModuleDynamically(specifier, _, importAttributes) { argument 1257 importAttributes);
|
/third_party/node/lib/ |
D | repl.js | 465 async function importModuleDynamically(specifier, _, importAttributes) { argument 468 importAttributes);
|