You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correctly handle EOF when the last entity is a function with a single-expression body that ends in an unnamed function
Before this, we emitted an "unexpected end of source file" in the specific case that the very last entity in a source file was a function with a single-expression body that ended in an unnamed function that also had a single-expression body that ended in an unnamed function -- I specifically don't require two `;` there, and making the second `;` optional exposes expression parsing to EOF. Solution: Check `done()` in the places that could be the end of an expression-statement, in case we consumed all the tokens already in this particular edge case.
0 commit comments