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

case undefined with minify whitespace causes a syntax error #6750

Closed
paperdave opened this issue Oct 27, 2023 · 0 comments · Fixed by #6808
Closed

case undefined with minify whitespace causes a syntax error #6750

paperdave opened this issue Oct 27, 2023 · 0 comments · Fixed by #6808
Labels
bug Something isn't working transpiler parser || printer

Comments

@paperdave
Copy link
Collaborator

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

switch (1) {
  case undefined: {
  }
}

What is the expected behavior?

switch(1){case undefined:{}}

What do you see instead?

switch(1){caseundefined:{}}

Additional information

No response

@paperdave paperdave added the bug Something isn't working label Oct 27, 2023
@Electroid Electroid added the transpiler parser || printer label Oct 27, 2023
krk added a commit to krk/bun that referenced this issue Oct 30, 2023
Print a space before `undefined` in `printUndefined`.

fix oven-sh#6750
dylan-conway pushed a commit that referenced this issue Oct 30, 2023
Print a space before `undefined` in `printUndefined`.

fix #6750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working transpiler parser || printer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants