File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -250,8 +250,11 @@ function setupFetch() {
250250 }
251251
252252 // 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+ }
255258 }
256259 } ) ( ) . then ( ( ) => {
257260 // No error occurred. Tell the implementation that the stream has ended.
Original file line number Diff line number Diff line change 1212 "contenttype.any.js" : {
1313 "skip" : " WPTRunner does not support fetch()"
1414 },
15- "empty-body.any.js" : {
16- "skip" : " Bug in undici, see https://github.com/nodejs/undici/issues/1345"
17- },
1815 "idlharness.any.js" : {
1916 "skip" : " not configured"
2017 },
You can’t perform that action at this time.
0 commit comments