"compatible descriptors" and how they are checked
David Bruant
bruant.d at gmail.com
Wed Sep 19 05:31:00 PDT 2012
Le 19/09/2012 13:48, Jason Orendorff a écrit :
> On Wed, Sep 19, 2012 at 4:44 AM, David Bruant <bruant.d at gmail.com> wrote:
>> Also, the wiki doesn't say how the check is being performed.
> http://wiki.ecmascript.org/doku.php?id=harmony:proxies_spec
>
> TrapGetOwnProperty specifies how the check is performed.
Indeed, my mistake.
So the answer to my earlier is that the action is performed on the
target directly.
"Return the result of calling the built-in function
Reflect.getOwnPropertyDescriptor(target, P)."
This means that if the target itself is a proxy, its
getOwnPropertyDescriptor trap will be called.
Once again, just to state how things are, all algorithms in the
harmony:proxies_spec page will have the largest part of their internal
revealed if either the target or the handler are themselves proxies. It
may necessitate a careful review of each algorithm before adding them to
the spec.
David
More information about the es-discuss
mailing list