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

Function getSourceMapAsync

src/source_map_support.js:109–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107}
108
109async function getSourceMapAsync() {
110 if (ENVIRONMENT_IS_WEB
111#if ENVIRONMENT_MAY_BE_WORKER
112 || ENVIRONMENT_IS_WORKER
113#endif
114 ) {
115 try {
116 var response = await fetch(wasmSourceMapFile, {{{ makeModuleReceiveExpr('fetchSettings', "{ credentials: 'same-origin' }") }}});
117 return response.json();
118 } catch {
119 // Fall back to getSourceMap below
120 }
121 }
122 return getSourceMap();
123}
124
125
126#if PTHREADS || WASM_WORKERS

Callers

nothing calls this directly

Calls 1

getSourceMapFunction · 0.85

Tested by

no test coverage detected