You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spread operator requries --es-staging in v5.3.0 #4366
Changelog and official ES6 Support page states that Spread operator is supported without any runtime flags by >= 5.x.x. However, I get SyntaxError while using it without --es-staging flag. For example:
$ node -e 'var f = function (...parts) {};'
[eval]:1
var f = function(...parts) {};
^^^
SyntaxError: Unexpected token ...
at Object.exports.runInThisContext (vm.js:53:16)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:398:26)
at node.js:592:27
at nextTickCallbackWith0Args (node.js:433:9)
at process._tickCallback (node.js:362:13)
Activity
ChALkeR commentedon Dec 20, 2015
@elmigranto That is not the Spread operator, those are called Rest parameters.