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 <[email protected]>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
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

