-
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
node-8.9.3 two immediate execution function error #18275
Comments
Without knowing for sure, I would venture to guess this issue is similar in nature to this one: #18054 The automatic semicolon insertion performed by the V8 parser is not able to insert the semicolon in the correct spot for the code to execute as expected. |
This works as intended as you are basically writing this (() => {})()() The last function call is done on something that isn't a function, thus the error. |
Hey, I'm going to go ahead and close this as this is expected JavaScript behavior and is not something Node.js can do anything about anyway. Thank you so much for taking the time to report a potential bug! |
but if I add a semicolon to one line is ok,like this
The text was updated successfully, but these errors were encountered: