parse-function fails for async class method containing a nested arrow function #152
Labels
Pkg: parse-function
Priority: High
After critical issues are fixed, these should be dealt with before any further issues.
Status: Accepted
It's clear what the subject of the issue is about, and what the resolution should be.
Status: Available
No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues.
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Support plan
Enterprise): Community
Context
What are you trying to achieve or the steps to reproduce?
This seems to only occur under these specific curcumstances
If any of the above are not true, the issue does not occur.
Demo: https://repl.it/join/yibjtdqc-neaox
Code:
What was the result you got?
SyntaxError: Unexpected token, expected "=>" (1:18)
What result did you expect?
The function to parse correctly.
Workaround
Use a function declaration within the class method instead of an arrow function:
The text was updated successfully, but these errors were encountered: