Skip to content
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

Error when no trailing newline last line in file is a comment #11

Open
esromneb opened this issue Feb 20, 2019 · 2 comments
Open

Error when no trailing newline last line in file is a comment #11

esromneb opened this issue Feb 20, 2019 · 2 comments

Comments

@esromneb
Copy link

If the last line in the file that is passed to node-repl is a // comment , AND there is no newline at the end of the file the code breaks with:

SyntaxError: Unexpected token }
@crobinson42
Copy link

@esromneb this doesn't appear to be an issue for me? I'm using [email protected] and Node.js version 10.15.3

Screenshot 2019-06-30 20 28 29

@dccarmo
Copy link

dccarmo commented Dec 24, 2019

I was having the same issue, adding a new line at the end of the file fixed it for me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants