Open esromneb opened 5 years ago
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:
node-repl
// comment
SyntaxError: Unexpected token }
@esromneb this doesn't appear to be an issue for me? I'm using node-repl@2.0.2 and Node.js version 10.15.3
node-repl@2.0.2
I was having the same issue, adding a new line at the end of the file fixed it for me as well.
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: