JavaScript parser: Don't drop the token after an unbraced if
If an `if` haven't had braces, the code used to check itself for an `else` after it, eating the next token if it wasn't actually an `else`. So, drop the check for the else altogether since parseLine() handles `else`s by calling parseIf() anyway. This fixes constructs like: if (foo) bar(); function baz() { // ... } Closes #3568542.
Showing
Please
register
or
sign in
to comment