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
Terser crashes on class property named get
#1078
Comments
Thanks for reporting! This was an easy fix |
Reopening. I believe this can still fail if you're using semicolon-less ASI: class Foo {
get
prop = 1;
} |
Thanks @jridgewell! |
@jridgewell If I execute that code snippet in the console, I get `Uncaught SyntaxError: Unexpected token '='``. So I am not sure if ASI works with private class fields? |
Ha, ASI doesn't apply because it tries to make a getter method (which then fails). Thanks! |
ASI is so weird :D |
Bug report or Feature request?
Bug
Version (complete output of
terser -V
or specific git commit)5.9.0
Complete CLI command or
minify()
options usedterser
inputterser
output or errorExpected result
The text was updated successfully, but these errors were encountered: