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

Function resolveAll

ses.cjs:7821–7828  ·  view source on GitHub ↗
(imports,resolveHook,fullReferrerSpecifier)

Source from the content-addressed store, hash-verified

7819// `resolveAll` pre-computes resolutions of all imports within the compartment
7820// in which a module was loaded.
7821$h‍_once.makeAlias(makeAlias);const resolveAll=(imports,resolveHook,fullReferrerSpecifier)=>{
7822 const resolvedImports= create(null);
7823 for( const importSpecifier of imports) {
7824 const fullSpecifier= resolveHook(importSpecifier, fullReferrerSpecifier);
7825 resolvedImports[importSpecifier]= fullSpecifier;
7826 }
7827 return freeze(resolvedImports);
7828 };
7829
7830const loadRecord= (
7831 compartmentPrivateFields,

Callers 1

loadRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected