(specifier)
| 9234 | }, |
| 9235 | |
| 9236 | async import(specifier){ |
| 9237 | if( typeof specifier!== 'string') { |
| 9238 | throw TypeError('first argument of import() must be a string'); |
| 9239 | } |
| 9240 | |
| 9241 | assertModuleHooks(this); |
| 9242 | |
| 9243 | return promiseThen( |
| 9244 | load(privateFields, moduleAliases, this, specifier), |
| 9245 | ()=> { |
| 9246 | // The namespace box is a contentious design and likely to be a breaking |
| 9247 | // change in an appropriately numbered future version. |
| 9248 | const namespace= compartmentImportNow( |
| 9249 | /** @type {Compartment} */ this, |
| 9250 | specifier); |
| 9251 | |
| 9252 | return { namespace}; |
| 9253 | }); |
| 9254 | |
| 9255 | }, |
| 9256 | |
| 9257 | async load(specifier){ |
| 9258 | if( typeof specifier!== 'string') { |
nothing calls this directly
no test coverage detected