> -----Original Message-----
> From: kangax [mailto:kan...@gmail.com]
> Sent: 29 November 2009 17:59
> To: Prototype: Core
> Subject: [Prototype-core] Re: Google's Closure Compiler on 1.6.1
> On Nov 24, 12:04 pm, barunio <baru...@gmail.com> wrote:
> > Has anyone tried to run Google's Closure Compiler in advanced mode on
> > 1.6.1?  The compression it achieves is fantastic, and it would be
> > great to know that it's safe to use with Prototype.  It creates 126
> > warnings (no errors), and I was hoping someone with a bit more
> > experience with the core codebase than me might have some interest in
> > taking a look.
> There are two things that prevent successful compression. First of
> all, Closure Compiler is still premature. It does few unsafe
> translations that it shouldn't really be doing. For this reason, I
> would think twice before using it in production code (or at least test
> munged code thoroughly).
> Then there's properties munging in advanced mode, which essentially
> brakes all of Prototype's public API. `Object.isFunction`, for
> example, becomes `Object.Aa`, and so on. Without some explicit white/
> black -listing of properties that are allowed to be munged, it's not
> possible to compress library in a safe way.

What if you added your own code to the end of Prototype, then ran though 
Closure? So long as it was Object.Aa everywhere, it should work.


The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc.) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Index Ltd is a company registered in England and Wales under number 
01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 
157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the 
Financial Services Authority. FSA Register number 114059.

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to