platform icon indicating copy to clipboard operation
platform copied to clipboard

"Unexpected end of input" if js ends with a comment

Open pgrill79 opened this issue 10 months ago • 0 comments

If you use Java Script and the last line of your js is a comment (so there is no CRLF after the comment) you get the following error when the script is executed

Image

If there is a CRLF afterwards or the last line is no comment it works.

pgrill79 avatar Feb 16 '25 14:02 pgrill79