MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / moduleLoaded

Function moduleLoaded

src/lib/libdylink.js:1208–1218  ·  view source on GitHub ↗
(exports)

Source from the content-addressed store, hash-verified

1206
1207 // module for lib is loaded - update the dso & global namespace
1208 function moduleLoaded(exports) {
1209 if (dso.global) {
1210 mergeLibSymbols(exports, libName);
1211 } else if (localScope) {
1212 Object.assign(localScope, exports);
1213#if DYNCALLS || !WASM_BIGINT
1214 registerDynCallSymbols(exports);
1215#endif
1216 }
1217 dso.exports = exports;
1218 }
1219
1220 if (flags.loadAsync) {
1221#if DYLINK_DEBUG

Callers 1

libdylink.jsFile · 0.85

Calls 1

assignMethod · 0.45

Tested by

no test coverage detected