[+tvcutsem]

On Thu, Jul 21, 2011 at 11:16 AM, <[email protected]> wrote:

>
> http://codereview.appspot.com/**4535118/diff/44001/src/com/**
> google/caja/plugin/domado.js#**newcode348<http://codereview.appspot.com/4535118/diff/44001/src/com/google/caja/plugin/domado.js#newcode348>
> src/com/google/caja/plugin/**domado.js:348:
> ExpandoProxyHandler.prototype.**getOwnPropertyDescriptor = function
> (name) {
> On 2011/07/20 00:26:48, kpreid2 wrote:
>
>> On 2011/07/18 21:57:01, MikeSamuel wrote:
>> > Are these name parameters guaranteed to be coerced to strings or numbers
>
> > before reaching the proxy handler?
>
>
>  I would expect so. ES5 semantics have the property name in an
>> ordinary foo[bar]
>
>  coerced to string well before any internal methods of foo are invoked. But
>> the
>
>  final arbiter would have to be the semantics of proxies, which don't seem
>> to be
>
>  written down on ES Wiki.
>>
>
>  MarkM would be the person to consult for this.
>>
>
> Mark, is that correct?


It's correct. I suspect it is captured somewhere on the proxies semantics
pages, but will check later. We have talked about changing it and rejected
that plan, at least for now, which is why I'm fairly confident that it's
always a string.

cc'ed Tom. Tom?

(Tom is on vacation and hard to reach right now, so don't be surprised by
lack of answer.)


-- 
    Cheers,
    --MarkM

Reply via email to