https://github.com/mishoo/UglifyJS
Revision fc8314e810c91431cd18fa9a784adb7867726013 authored by Mihai Bazon on 19 October 2012, 09:57:29 UTC, committed by Mihai Bazon on 19 October 2012, 09:57:29 UTC
    function f(x, y) {
        var g = function() { return h() };
        var h = function() { return g() };
        return x + y;
    }

now compresses to `function f(x, y) { return x + y }`
1 parent 6f45928
History
Tip revision: fc8314e810c91431cd18fa9a784adb7867726013 authored by Mihai Bazon on 19 October 2012, 09:57:29 UTC
minor fix for dropping unused definitions.
Tip revision: fc8314e
File Mode Size
bin
lib
test
tools
.gitignore -rw-r--r-- 5 bytes
README.md -rw-r--r-- 21.2 KB
package.json -rw-r--r-- 701 bytes

README.md

back to top