test262 test suite has test containing source:
var x=0, y=0;
var z=
x
++
++
y
The annotation says:
Since LineTerminator(LT) between Postfix Increment/Decrement Operator(I/DO) and operand is not allowed, two IO(just as two DO and their combination) between two references separated by [LT] after automatic semicolon insertion lead to syntax error
Why does this code lead to syntax error? I think it's a valid code snippet. The code above equals to var z=x; ++ ++ y;
. Expression ++ ++ y
is allowed by javascript grammar. So what's the problem?