Enriched Descriptors, maybe ES7 ?
Andrea Giammarchi
andrea.giammarchi at gmail.com
Sun Mar 9 13:12:23 PDT 2014
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 <brendan at 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.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140309/f7591e86/attachment.html>
More information about the es-discuss
mailing list