()
| 107 | } |
| 108 | |
| 109 | async 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 |
nothing calls this directly
no test coverage detected