-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax error thrown for correct syntax within node shell #36513
Comments
Are you able to test the proposed v14.15.2 release (#36476)? I suspect this may be addressed by the acorn parser related changes. |
It appears to be fixed in 14.15.2
Once it was finished building, I found the path to the 14.15.2 version I just built
Then I used it to open a node shell and pasted the lines that failed in 14.15.1
It did not throw an error. |
Should be fixed in https://nodejs.org/en/blog/release/v14.15.2/. |
The node shell does not correctly parse a multiline function that uses optional chaining, ternary operator, and an identity operator.
These commands work as expected
However, attempting to define function test5 from within a node shell fails
The text was updated successfully, but these errors were encountered: