File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines 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
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
},
You can’t perform that action at this time.
0 commit comments