-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
[JS] Support for nullish assignment / class and more ES6 rules #380
Comments
This kind of javascript can not be parsed too: class A {
prop = 1;
constructor() {
// some code
};
method = () => {
// some code
};
}; The minifier can't process this kind of |
Both syntax types are not in the specification but still in the proposal stage. I've added the first as you requested, let me see how much is involved in the class one. |
It's supported now, however it's still in the proposal phase. Usually the minifiers follow the latest official specification, but this is an exception. |
Issue
Minify minified a special javascript code file. Then it returned a 0 byte response. After some testings, I found the problem:
With this style, Minify runs well:
With this style, Minify goes wrong:
more information on the nullish assignment: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_nullish_assignment
Version
2.9.13
The text was updated successfully, but these errors were encountered: