-
Notifications
You must be signed in to change notification settings - Fork 12.9k
fix(54992): Negative constant enums return number when toString is called #55031
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
Conversation
Adding parenthesis could create other problems - but I guess that's not really possible since the emitter prefers semicolons. Is that right? Or am I missing some edge cases in which an accidental function call could be created? |
What happened to this PR? Was it totally wrong in some way? FWIW, here's what esbuild does; thankfully doesn't have this problem, but my recollection of this PR before it was force pushed to empty was that this PR matched. |
@jakebailey I've closed it in favor of @Andarist's PR. |
Which PR is that? #55018 is for a different bug, and I'm not seeing any other enum PRs... |
I believe @Andarist will create a new PR soon. |
here it is: #55065 |
No description provided.