jeremykohn / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

Unable to compile with Closure Compiler #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
One is unable to compile in closure compiler because of the code one line 51 of 
core.js. Closure rewrites the "init" property to some other value, but will not 
re-write the string.

Original issue reported on code.google.com by terinjokes@gmail.com on 12 Feb 2013 at 8:01

GoogleCodeExporter commented 9 years ago
Sounds like you're trying to use advanced compilation. Any JS code would need 
to be specially crafted to work correctly with that compression level. I played 
around with that once, but the payoff seemed disproportionately small to the 
work required. I suggest you use closure compiler's simple optimizations. It's 
still one of the best minifiers available, and it's designed to work correctly 
with all valid JS.

Original comment by Jeff.Mott.OR on 12 Feb 2013 at 8:20