Skip to content

Unterminated string literal  #4893

Closed

Description

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?

 const SMS = {
     TOKEN: "[TOKEN]",
     TEMPLATES: {
         FORGOT_PASSWORD: "Your forgot password link!\
		\nLINK\
		\n \
		\nRegards, \n ",
     }
 }; 

Due to this code bun throws this errror.


error: Unterminated string literal

         FORGOT_PASSWORD: "Your forgot password link!\

nodejs is able to run this.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions