This source: a=b=1;((a + 1), {c} = b)
Quick command-line test:
echo "a=b=1;((a + 1), {c} = b)" | nodeThese slight variations DO work in node:
a=b=1;((a), {c} = b)a=b=1;((a + 1), ({c} = b))It also works in: Babel 6.23.1
@shanebdavis Fwiw, it also works in Node 7.x, which means it was likely fixed during a V8 upgrade.
/cc @nodejs/v8
@addaleax Thanks! That makes sense. I was wondering why it worked in Chrome and not Node.
Is 6.x scheduled to get V8 updates?
Is 6.x scheduled to get V8 updates?
Not regularly. I think the process for these cases is to look for which commit(s) in V8 fixed the problem, see if is feasible to apply them to the old V8 branch and then cherry-pick them back.
Eh I suppose we can keep the label on it if backporting is at all viable.
I Identified https://github.com/v8/v8/commit/dfb8d3331e7cb2c3e67ef820cbcb6cfbae7159e5 as the commit that fixes it using git bisect.