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
{{ message }}
Repository navigation
[parser] Flow types and syntax errors in function bodies #38
The parser is misattributing the syntax error to the function arg list, rather than the body. Removing the return type annotation fixes this and gives the proper syntax error:
I think the preceding code, when it tries to speculatively parse a function with a flowtype, is encountering an error in the body and eating it/resetting the state. Then because the refShorthandDefaultPos is set, the error appears outside the function body.
Activity
wcjohnson commentedon Jun 20, 2017
Possible fix here: wcjohnson/babylon-lightscript@7e6678c