If I take this code and compile it (advanced optimizations)
function MyObject() { this.test = 4 this.toString = function () {return 'test object'} } window['MyObject'] = MyObject
I get this code
window.MyObject=function(){this.test=4;this.toString=function(){return"test object"}};
Is there a way to remove the toString function using the Closure compiler?
javascript google-closure-compiler
George Bailey
source share