Maybe we need a reflect API to iterate over instance members

Alexander Jones alex at weej.com
Mon Jun 1 18:36:41 UTC 2015


On Monday, June 1, 2015, Tom Van Cutsem <tomvc.be at gmail.com> wrote:

>
>
> 2015-06-01 8:38 GMT+02:00 Domenic Denicola <d at domenic.me
> <javascript:_e(%7B%7D,'cvml','d at domenic.me');>>:
>
>> From: es-discuss [mailto:es-discuss-bounces at mozilla.org
>> <javascript:_e(%7B%7D,'cvml','es-discuss-bounces at mozilla.org');>] On
>> Behalf Of Gray Zhang
>>
>> > I’m just wondering is there any reason that Reflect API is not suitable
>> to provide such functionality?
>>
>> Reflect currently contains only methods which correspond to proxy traps.
>> There has been talk of extending it beyond that, but making that first step
>> is going to be a hurdle for whoever’s proposing it to extend it.
>
>
> Or since Proxy traps correspond 1-to-1 to the "internal methods" in the
> spec, the primary goal of the Reflect API was to expose the essential
> methods that make up Javascript's object model as defined by the spec.
>

I like this definition. Is it written down? (I need ammunition for
Reflect.type(x)!)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150601/aa781860/attachment.html>


More information about the es-discuss mailing list