lib,test: enable wasm/webapi/empty-body WPT

Refs: https://github.com/nodejs/node/pull/42701
Refs: https://github.com/nodejs/undici/pull/1346
Refs: https://github.com/nodejs/node/pull/42939

PR-URL: https://github.com/nodejs/node/pull/42960
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Tobias Nießen authored and RafaelGSS committed 2022-05-10 09:13:18 -03:00
1 parent 41d2f6e8c5
commit c64b8d3282
2 files changed
+5 -5

No files matched your search

+5 -2
View File
@@ -250,8 +250,11 @@ function setupFetch() {
}
// Pass all data from the response body to the WebAssembly compiler.
for await (const chunk of response.body) {
streamState.push(chunk);
const { body } = response;
if (body != null) {
for await (const chunk of body) {
streamState.push(chunk);
}
}
})().then(() => {
// No error occurred. Tell the implementation that the stream has ended.
-3
View File
@@ -12,9 +12,6 @@
"contenttype.any.js": {
"skip": "WPTRunner does not support fetch()"
},
"empty-body.any.js": {
"skip": "Bug in undici, see https://github.com/nodejs/undici/issues/1345"
},
"idlharness.any.js": {
"skip": "not configured"
},