-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Makes mocha.js YUI-compressible #1035
Makes mocha.js YUI-compressible #1035
Conversation
While I believe this MDN article is out of date. I'll update. |
@travisjeffery Updated MDN with all |
ok made the change. didn't merge your commit tho since you made the change in the generated file and i didn't like the function names. |
@travisjeffery Thanks a lot! New function names lg2m. And sorry for modifying the wrong file. TIL :) |
This wasn't fully fixed. Having |
@campaul should be fixed now in master |
Before this diff, trying to compress mocha.js with YUI compressor would result in the following output
After this change, mocha.js compresses as you would expect, without errors.
The reason why YUI failed to compress
mocha.js
: it uses oflong
andshort
as identifiers. They are reserved word in ECMAScript since ECMAScript v2:Cheers,
Arnaud.