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 e025783 commit 7921600Copy full SHA for 7921600
custom/tests.yaml
@@ -4200,7 +4200,21 @@ api:
4200
body:
4201
__additional:
4202
readable_byte_stream: |-
4203
- return !!instance.body && 'getReader' in instance.body;
+ if (!instance.body) {
4204
+ return {result: false, message: "Response.body is not defined"};
4205
+ }
4206
+ if (!('getReader' in instance.body)) {
4207
+ return {result: false, message: "Response.body.getReader is not defined"};
4208
4209
+ try {
4210
+ instance.body.getReader({mode: 'byob'});
4211
+ return true;
4212
+ } catch(e) {
4213
+ if (e instanceof TypeError) {
4214
+ return {result: false, message: e.message};
4215
4216
+ return e;
4217
4218
4219
json_static: |-
4220
return 'Response' in self && 'json' in Response;
0 commit comments