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) {} function

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 kangh...@oupeng.comwrote: Is ... a new token that should be listed in Punctuator. I think it should and it seems