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

When minifing comma operator syntax, the behaviour of the minified code changes #474

Open
DenisaSurdu opened this issue Feb 26, 2016 · 0 comments

Comments

@DenisaSurdu
Copy link

The problem

Given this function:
function test2(){ var a = "some text"; return a+="help", a+=" some more help";} which returns "some texthelp some more help"
When minified, gets converted into something like:
function test2(){ var a = "some text"; return a+"help", a+=" some more help";} which returns "some text some more help"

Note the return a+"help"

This represents an issue when including in cassette .min.js files with a similar syntax as above - especially when the .min.js are 3rd party libraries. (I have noticed this when I used cassette with the colors plugin from Froala)

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

1 participant