my quick tests say no implementation does, all seem to create from the
scratch a new object with only known/described descriptor properties.

```javascript

Object.getOwnPropertyDescriptor(
  Object.defineProperty(
    {},'test',{value:123,type:'number'}
  ),
  'test'
).type // undefined

```

I'd love to know more about Tom experiments on this!

Best Regards




On Sun, Mar 9, 2014 at 1:05 PM, Brendan Eich <bren...@mozilla.com> wrote:

> Tom has experimented, IIRC. I don't know which implementations preserve
> extended property descriptor properties.
>
> /be
>
>
> Allen Wirfs-Brock wrote:
>
>> Note that ES6 proxies as specified permits 
>> Object.defineProperty/getOwnPropertyDescriptor
>> to pass custom attributes in property descriptors and even passes them
>> along (not sure if anybody has actually implemented this yet) wherever
>> there is a internal get descriptor/set descriptor sequence.  Proxies that
>> support custom attributes might be an interest way toi experiment with some
>> of these ideas.
>>
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to