I wrote a NodeJs script using ES6 features (default parameters and destructuring), so I put the following shebang:
#!/bin/node --harmony_destructuring --harmony_default_parameters
But then node tells me:
/bin/node: bad option: --harmony_destructuring --harmony_default_parameters
Both of these options are listed in node --v8-options | grep "in progress"
so they should be both valid, but maybe my syntax is incorrect.
I tried different syntaxs:
/bin/node: bad option: --harmony_destructuring=true --harmony_default_parameters=true
/bin/node: bad option: --harmony_destructuring true --harmony_default_parameters true
With no luck.