We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41d2f6e commit c64b8d3Copy full SHA for c64b8d3
lib/internal/bootstrap/pre_execution.js
@@ -250,8 +250,11 @@ function setupFetch() {
250
}
251
252
// Pass all data from the response body to the WebAssembly compiler.
253
- for await (const chunk of response.body) {
254
- streamState.push(chunk);
+ const { body } = response;
+ if (body != null) {
255
+ for await (const chunk of body) {
256
+ streamState.push(chunk);
257
+ }
258
259
})().then(() => {
260
// No error occurred. Tell the implementation that the stream has ended.
test/wpt/status/wasm/webapi.json
@@ -12,9 +12,6 @@
12
"contenttype.any.js": {
13
"skip": "WPTRunner does not support fetch()"
14
},
15
- "empty-body.any.js": {
16
- "skip": "Bug in undici, see https://github.com/nodejs/undici/issues/1345"
17
- },
18
"idlharness.any.js": {
19
"skip": "not configured"
20
0 commit comments