Re: [fetch] Header guards (#182)

@phuu I can write a bunch of tests that will pass with a real fetch implementation and fail with a polyfill implemented as you describe. For example, `Object.getPrototypeOf(response.headers) === Headers.prototype`, `response.headers.constructor === Headers`, etc.

It seems better to implement this as the spec says, with a single Headers class and an internal (i.e. underscore-prefixed) guard.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/182#issuecomment-164859936

Received on Tuesday, 15 December 2015 19:16:11 UTC