We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2178a57 commit 8eb230aCopy full SHA for 8eb230a
src/mono/wasm/runtime/startup.ts
@@ -436,7 +436,7 @@ async function _fetch_data (url: string): Promise<Response> {
436
ok: !!data,
437
url: url,
438
arrayBuffer: () => Promise.resolve (new Uint8Array (data)),
439
- json: () => Promise.resolve(JSON.parse(data))
+ json: () => Promise.resolve (JSON.parse (ENVIRONMENT_IS_NODE ? data : read(url))),
440
});
441
} else {
442
return Promise.reject(Error("No fetch implementation available"));
0 commit comments