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

Regression: exception when compiling a = {[-1]: 1} #3169

Closed
StephanHoyer opened this issue Jun 16, 2023 · 2 comments
Closed

Regression: exception when compiling a = {[-1]: 1} #3169

StephanHoyer opened this issue Jun 16, 2023 · 2 comments

Comments

@StephanHoyer
Copy link

StephanHoyer commented Jun 16, 2023

Worked in v0.17.19.
Does not work in 0.18.3

I fixed it in userland by converting it to a string first (which is done anyways by JS)

@hyrious
Copy link

hyrious commented Jun 16, 2023

This issue is saying --minify incorrectly removes the [] from [-1] from 0.18.0, which leads to a syntax error (a = { -1: 1 }). playground link

@evanw evanw closed this as completed in 5eb8f03 Jun 16, 2023
@StephanHoyer
Copy link
Author

that was fast.... thanks @evanw

And thanks for your awesome work in this wonderful piece of software!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants