I had a question about why node v6.7 would be failing to run this code:
var a = {
foo: \'bar\'
}
var b = {
...a,
my: \'sharona\'
}
console.log(b
Using rest/spread with objects is a separate proposal, which you can read about here. A proposal doesn't get accepted for the yearly ES release unless it reaches stage 4, and it is currently stage 3. It may make it into ES2018. If you want to use it now, you'll have to use a transpiler like babel.
EDIT: As of Node v8.3, object rest/spread is available without the need for any transpilation.