Js2JsCompiler.prototype.compileCode = function(code) { return code; // as we need to compile javascript to javascript, we do nothing here :) };
Js2JsCompiler.prototype.decompile = function(inputLocation, outputLocation) { // I had to read the whole Dragon Book again to implement this. return this.compile(inputLocation, outputLocation); }
>Control >You have full control over every single bit of the code produced by js2js. You can even compile an invalid JavaScript program to an equally invalid one.