(x) => {foo: bar}
Gary Guo
nbdd0121 at hotmail.com
Tue Jan 6 17:34:22 PST 2015
I found that even without shorthand, the object literal can still be ambiguous with block.
```js()=>{ method() {
}}
shall it be interpreted as()=>({ method(){ // method body }})
or
()=>{ method(); { // block statement }}```
This is certainly an ambiguity that cannot be resolved by any transformation, or refinement of syntax. (so does the shorthand {x,y,z})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150107/e9a5e8ea/attachment.html>
More information about the es-discuss
mailing list