| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 41d2f6e commit c64b8d3
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -250,8 +250,11 @@ function setupFetch() { | |||
| 250 | 250 | } | |
| 251 | 251 | ||
| 252 | 252 | // Pass all data from the response body to the WebAssembly compiler. | |
| 253 | - for await (const chunk of response.body) { | ||
| 254 | - streamState.push(chunk); | ||
| 253 | + const { body } = response; | ||
| 254 | + if (body != null) { | ||
| 255 | + for await (const chunk of body) { | ||
| 256 | + streamState.push(chunk); | ||
| 257 | + } | ||
| 255 | 258 | } | |
| 256 | 259 | })().then(() => { | |
| 257 | 260 | // No error occurred. Tell the implementation that the stream has ended. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,9 +12,6 @@ | |||
| 12 | 12 | "contenttype.any.js": { | |
| 13 | 13 | "skip": "WPTRunner does not support fetch()" | |
| 14 | 14 | }, | |
| 15 | - "empty-body.any.js": { | ||
| 16 | - "skip": "Bug in undici, see https://github.com/nodejs/undici/issues/1345" | ||
| 17 | - }, | ||
| 18 | 15 | "idlharness.any.js": { | |
| 19 | 16 | "skip": "not configured" | |
| 20 | 17 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments