Re: spread operator (...) as a new token

2013-01-18 Thread Allen Wirfs-Brock
It's suposed to be a single token. I just updated section 7.7 in my working draft of the ES6 spec. to make this explicit. Allen On Jan 17, 2013, at 7:40 PM, Brandon Benvie wrote: > This is implemented in esprima as a punctuator token as well: > https://github.com/ariya/esprima/blob/harmony/e

Re: spread operator (...) as a new token

2013-01-17 Thread Brandon Benvie
This is implemented in esprima as a punctuator token as well: https://github.com/ariya/esprima/blob/harmony/esprima.js#L724 On Thu, Jan 17, 2013 at 9:51 PM, Kang-Hao (Kenny) Lu wrote: > Is "..." a new token that should be listed in Punctuator. I think it > should and it seems like a little miss

spread operator (...) as a new token

2013-01-17 Thread Kang-Hao (Kenny) Lu
Is "..." a new token that should be listed in Punctuator. I think it should and it seems like a little miss for which I am happy to file a bug, but I am not so sure as the proposal[1] doesn't include it. It seems that Firefox implements it as a token. Test cases: function x(. ..y) {} functio