On Wed, Sep 8, 2010 at 2:47 AM, Mark S. Miller <[email protected]> wrote:
> On Tue, Sep 7, 2010 at 4:17 PM, Sam Tobin-Hochstadt <[email protected]>
> wrote:
>>
>> I've significantly revised the private names strawman, available here:
>>
>>  http://wiki.ecmascript.org/doku.php?id=strawman:names
>>
>> Feedback is welcome, especially on the semantics discussion, which I
>> hope is clearer at this point.
>>
>> Thanks to Dave and Allen for their feedback.  This is also planned for
>> discussion at the next TC39 meeting.
>
> Hi Sam, glad to see this coming together. A couple questions:
> 1) Given
>     const n = new Name();
>     const x = Object.freeze({...});
> what does
>     x[n] = 88;
> do?

Produces an error, just as x["n"] would.

> 2) Given
>     const n = new Name();
>     const x = Proxy.create(..., ...);
> what does
>     x[n] = 88;
> do?

Calls the 'set' trap of 'x' with x, n, and 88 as arguments.
-- 
sam th
[email protected]
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to