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

Function shouldExportHeap

src/runtime_common.js:94–102  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

92 // Helper function to export a heap symbol on the module object,
93 // if requested.
94 const shouldExportHeap = (x) => {
95 let shouldExport = false;
96 if (MODULARIZE && EXPORT_ALL) {
97 shouldExport = true;
98 } else if (EXPORTED_RUNTIME_METHODS.has(x)) {
99 shouldExport = true;
100 }
101 return shouldExport;
102 }
103 const maybeExportHeap = (x) => {
104 if (shouldExportHeap(x) && MODULARIZE != 'instance') {
105 return `Module['${x}'] = `;

Callers 1

maybeExportHeapFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected