Tom Van Cutsem
tomvc.be at gmail.com
Mon Jun 11 20:53:08 PDT 2012
2012/6/12 Brendan Eich <brendan at mozilla.org>
> I see -- thanks. We should try to detail the privileged APIs and their
> module(s) a bit more. I used "@reflect" above but I didn't mean to equate
> it to Tom's Reflect.* used in conjunction with direct proxies. And not all
> reflection facilities are privileged -- more the reverse for the direct
> proxy stuff, right?
That's right. The reflection API specced at <
http://wiki.ecmascript.org/doku.php?id=harmony:reflect_api> was meant to
encapsulate both proxies and all the utility methods that a proxy handler
needs to uniformly "forward" trapped ops to a target object. AFAICT, none
of these operations are privileged: it's easy enough to define them in
terms of more primitive, immediately available JS built-ins/operators.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss