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

Function exportSymbol

src/modules.mjs:465–472  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

463}
464
465function exportSymbol(name) {
466 // In MODULARIZE=instance mode symbols are exported by being included in
467 // an export { foo, bar } list so we build up the simple list of names
468 if (MODULARIZE === 'instance') {
469 return name;
470 }
471 return `Module['${name}'] = ${name};`;
472}
473
474// export parts of the JS runtime that the user asked for
475function exportRuntimeSymbols() {

Callers 1

exportLibrarySymbolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected