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

Function writeOutput

src/jsifier.mjs:399–407  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

397 }
398
399 async function writeOutput(str) {
400 // Unmangle previously mangled `import.meta` references.
401 // See also: `mangleUnsupportedSyntax` in parseTools.mjs.
402 if (EXPORT_ES6) {
403 str = str.replaceAll('EMSCRIPTEN$IMPORT$META', 'import.meta');
404 }
405
406 await outputHandle.write(str + '\n');
407 }
408
409 const symbolsNeeded = DEFAULT_LIBRARY_FUNCS_TO_INCLUDE;
410 symbolsNeeded.push(...extraLibraryFuncs);

Callers 4

includeSystemFileFunction · 0.85
includeFileFunction · 0.85
finalCombinerFunction · 0.85
runJSifyFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected