[whatwg/xhr] null for response in case of invalid JSON (#68)

[JSON body parsing algorithm](https://xhr.spec.whatwg.org/#json-response) states that trying to parse a response which is an invalid JSON (thus, making `JSON.parse` throw an exception) will result in setting `null` to the `response` property. But according to ECMA-404 (but not to [RFC 4627](http://www.ietf.org/rfc/rfc4627.txt)), `null` is a valid JSON. So there is no way to distinct a valid response containing `null` and an invalid JSON.

---
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/xhr/issues/68

Received on Tuesday, 26 April 2016 13:15:25 UTC