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

Function buildStringArray

src/parseTools.mjs:986–992  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

984
985// Given an array of elements [elem1,elem2,elem3], returns a string "['elem1','elem2','elem3']"
986function buildStringArray(array) {
987 if (array.length > 0) {
988 return "['" + array.join("','") + "']";
989 } else {
990 return '[]';
991 }
992}
993
994function hasExportedSymbol(sym) {
995 return WASM_EXPORTS.has(sym);

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected