sqmk / pecl-jsmin

PHP PECL extension for JavaScript minification
Other
69 stars 21 forks source link

Uncaught ReferenceError: Invalid left-hand side expression in postfix operation #56

Open iamumairayub opened 5 years ago

iamumairayub commented 5 years ago

I get following error after JS is minified

Uncaught ReferenceError: Invalid left-hand side expression in postfix operation

It happens if there is some statement like anything_here + ++aVariable then JSMin.php will convert it to anything_here+++aVariable

It should convert to anything_here+(++aVariable) instead