Clarify the destructuring syntax
Егор Николаев
termi1uc1 at gmail.com
Fri Apr 11 10:29:35 PDT 2014
After firing a bug I read the spec again and realised that Get (O, P)
should already throw a Error.
So maybe I am misunderstood this from the beginning.
In this case section "12.14.5.4 4.b. If Type(v) is not Object, then throw a
TypeError exception." is useless because it already has a type checking in
Get function.
On Fri, Apr 11, 2014 at 8:13 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:
>
> On Apr 11, 2014, at 8:56 AM, Егор Николаев wrote:
>
> > On the one hand, the is a bug in current spec that allows the
> > ```javascript
> > let {length} = "qwe";
>
> Where in the spec. the bug? Is a ticket filed for it? Indeed, this is
> supposed to be an error.
>
> Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140411/06348fd9/attachment.html>
More information about the es-discuss
mailing list