Answer the question
In order to leave comments, you need to log in
How to enable destructuring support in function parameters in Node.js?
I used to run with flags --harmony --harmony_destructuring
- everything was fine. Now swears at SyntaxError: Unexpected token {
.
'use strict';
function myFunc({firstName, lastName}) {
// ...
}
node index.js --harmony --harmony_destructuring
had node --harmony --harmony_destructuring index.js
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question