* Get the built-in module dynamically for embedder ESM. * @param {string} specifier - The module specifier string. * @param {number} phase - The module import phase. Ignored for now. * @param {Record } attributes - The import attributes object. Ignored for now. * @param {string|nu
(specifier, phase, attributes, referrerName)
| 246 | * @returns {import('internal/modules/esm/loader.js').ModuleExports} - The imported module object. |
| 247 | */ |
| 248 | function importModuleDynamicallyForEmbedder(specifier, phase, attributes, referrerName) { |
| 249 | // Ignore phase and attributes for embedder ESM for now, because this only supports loading builtins. |
| 250 | return getBuiltinModuleWrapForEmbedder(specifier).getNamespace(); |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Asynchronously imports a module dynamically using a callback function. The native callback. |
no test coverage detected
searching dependent graphs…