- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 15 Dec 2015 11:15:43 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Tuesday, 15 December 2015 19:16:11 UTC
@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