-
Notifications
You must be signed in to change notification settings - Fork 30k
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
REPL syntax error when closing bracket & parenthesis are on different lines #4060
Labels
Comments
At first look, seems like it might be because of the indentation level. |
Nope, I was wrong. :/ |
Here are two simple test scenarios to reproduce this: a({
}
)
a([
]
) So while ({
}
)
// and
([
]
)
// and
((
)
) work correctly, a function call breaks. Also the third one (the one with only parens) throws but that's correct behaviour. |
tomgco
added a commit
to tomgco/node
that referenced
this issue
Jan 22, 2016
This fixes nodejs#4060, which breaks due to the error: `missing ) after argument list` and is not treated as recoverable.
tomgco
added a commit
to tomgco/node
that referenced
this issue
Jan 22, 2016
This fixes nodejs#4060, which breaks due to the error: `missing ) after argument list` and is not treated as recoverable.
Closing per #5437 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I seem to be getting a syntax error
SyntaxError: missing ) after argument list
with the following code:However if I put the closing bracket and parenthesis on the same line, there's no error:
Tested in node 4.2.1 & node 5.1.0 on OSX 10.11.1
The text was updated successfully, but these errors were encountered: