MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / import

Function import

ses.cjs:9236–9255  ·  view source on GitHub ↗
(specifier)

Source from the content-addressed store, hash-verified

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') {

Callers

nothing calls this directly

Calls 3

assertModuleHooksFunction · 0.85
loadFunction · 0.85
compartmentImportNowFunction · 0.85

Tested by

no test coverage detected