Fix WASM load hanging on some Node versions <20.6.0
| @@ -78,8 +78,7 @@ globalThis.fetch = async (/** @type {string | URL | Request} */ request, /** @ty | |||
| 78 | } | 78 | } |
| 79 | const fileName = parsedPath.base; | 79 | const fileName = parsedPath.base; |
| 80 | const buffer = await fs.promises.readFile(filePath); | 80 | const buffer = await fs.promises.readFile(filePath); |
| 81 | const blob = new Blob([buffer]); | 81 | const response = new Response(buffer, { |
| 82 | const response = new Response(blob, { | ||
| 83 | status: 200, | 82 | status: 200, |
| 84 | statusText: 'OK', | 83 | statusText: 'OK', |
| 85 | headers: { | 84 | headers: { |