closure-compiler
closure-compiler copied to clipboard
A JavaScript checker and optimizer.
In certain cases, unused Object.keys() is not elided. Consider ```javascript filename:a.js Object.keys({ "a": 1, "b": 2, }); ``` `google-closure-compiler --js a.js -O ADVANCED` outputs [JSC_USELESS_CODE] however ```javascript filename:a.js const a...
Standard scriptlets, jo syntax ka upyog karte hain, code ko execute karte hain jiske liye explicit output nahi hota hai. Lekin, jaise ki is udaaharan mein dikhaaya gaya hai, scriptlet...
This is very easy to reproduce: ``` // ==ClosureCompiler== // @compilation_level ADVANCED_OPTIMIZATIONS // @output_file_name default.js // ==/ClosureCompiler== class TestClass {}; TestClass.prototype = Object.create({}); ``` Results in a breaking exception upon...
While fuzzing the Closure Compiler using JQF, I encountered an internal compiler error. The compiler throws a RuntimeException with the message INTERNAL COMPILER ERROR. Below is the relevant part of...
In this minimal test case the compiler seems to be (incorrectly) type checking against a variable declared outside the scope? * the ```@const``` is necessary * both functions must be...