-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Unterminated string literal #4893
Comments
It looks like not all the text was copy pasted correctly because the snippet provided in the github issue runs successfully on my machine |
Hi I figured out providing the whole code snippet will not reproduce the problem as when I copy paste into a new file,bun run succesfully.But when i created the copy of the file itself, I was able to recreate the problem.Also when i commented this snippet from the original file, bun run succesfully. |
Could there be a Unicode character that does not appear in the file? I also ran it without any problems. |
Hi, i had run a python script to check for unicode characters,there are no characters which fall outside the ASCII for the file which bun wasn't able to run. This is the hexadecimal representation for the file which cause the problem.
|
Hi,I've included the file itself in a zip file |
It seems like this error only happens when a line is terminated with a A simple reproduction is
side question: is there a way to eval code like done above using bun? |
…oven-sh#5318) * Fix bug with multiline string in CRLF terminated files (oven-sh#4893) * add test for oven-sh#4893
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Due to this code bun throws this errror.
nodejs is able to run this.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: