On ES Harmony proxies extensibility

Dave Herman dherman at mozilla.com
Fri Jan 21 17:31:27 PST 2011


Not sure; I'll think about it. Though abstracting Proxy.Handler(Object.create(null, {})) might in fact be a worthwhile convenience.

Dave

"Mark S. Miller" <erights at google.com> wrote:

>On Fri, Jan 21, 2011 at 2:45 PM, David Herman <dherman at mozilla.com>
>wrote:
>
>> > Should we have a no-op or "sink" standard handler too?
>>
>> I think so, yes. Especially since you can use that to build one up
>that
>> implements just the other traps you want to implement, and let the
>others
>> "fail soft."
>>
>
>How would it be different from
>
>    new Proxy.Handler(Object.create(null, {}))
>
>?
>
>Or, depending on how soft you want to fail
>
>    new Proxy.Handler(null)
>
>?
>
>If there is a useful difference, I have no objection.
>
>
>>
>> Dave
>>
>>
>
>
>-- 
>    Cheers,
>    --MarkM

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.


More information about the es-discuss mailing list