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

Function exportLibrarySymbols

src/modules.mjs:600–610  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598}
599
600function exportLibrarySymbols() {
601 assert(MODULARIZE != 'instance');
602 const results = ['// Begin JS library exports'];
603 for (const ident of librarySymbols) {
604 if ((EXPORT_ALL || EXPORTED_FUNCTIONS.has(ident)) && !nativeAliases[ident]) {
605 results.push(exportSymbol(ident));
606 }
607 }
608 results.push('// End JS library exports');
609 return results.join('\n ') + '\n';
610}
611
612function exportJSSymbols() {
613 // In MODULARIZE=instance mode JS library symbols are marked with `export`

Callers 1

exportJSSymbolsFunction · 0.85

Calls 5

exportSymbolFunction · 0.85
hasMethod · 0.80
assertFunction · 0.70
pushMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected