[whatwg/fetch] Default value for ByteString in ResponseInit should be removed (#348)

The [Response IDL](https://fetch.spec.whatwg.org/#response-class) has a `ResponseInit` dictionary with a default value for the `statusText` `ByteString`:
```
dictionary ResponseInit {
  unsigned short status = 200;
  ByteString statusText = "OK";
  HeadersInit headers;
};
```
but the [WebIDL definition for ByteString](http://heycam.github.io/webidl/#idl-ByteString) says
> There is no way to represent a constant ByteString value in IDL.

**Conclusion: the default value for ByteString in ResponseInit should be removed.**
[Firefox](https://dxr.mozilla.org/mozilla-central/source/dom/webidl/Response.webidl?q=path%3Aresponse.webidl&redirect_type=single#) is already doing this.

(@jdm helped me figure this out.)

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/348

Received on Tuesday, 2 August 2016 19:23:22 UTC