- From: Timothy Gu <notifications@github.com>
- Date: Mon, 10 Oct 2016 14:34:57 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Monday, 10 October 2016 21:35:24 UTC
Currently the semantics of this type is a bit confused even among browser vendors. Take for example, the following code fragment:
```js
const a = Object.create({
three: 'three'
});
Object.defineProperties(a, {
one: {enumerable: true, value: 'one'},
two: {enumerable: false, value: 'two'}
});
const h = new Headers(a);
console.log(h.get('one'));
console.log(h.get('two'));
console.log(h.get('three'));
```
On Chrome 54.0.2840.34 (Official Build) beta (64-bit), the code results in
```
one
null
three
```
On Firefox 49.0b1:
```
one
null
null
```
Using the albeit outdated [github/fetch](https://github.com/github/fetch) polyfill:
```
one
two
null
```
It'd be the best if this issue could be resolved speedily. Thanks
--
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/164#issuecomment-252752477
Received on Monday, 10 October 2016 21:35:24 UTC