When demonstrating generators:
function* fibonacci() {
let a = 0, b = 1;
while(true) {
yield a;
// this syntax doesnt appear to be actually supported
[a, b] = [b, a + b];
}
}
ReferenceError: Invalid left-hand side in assignment
I'm using node v0.11.13 with the --harmony flag.