Sha256: 77c2d02a955963f343ea6fd22e21b87ed25018c1ca7d490b9ed4c9e14aa1bc0d

Contents?: true

Size: 1.8 KB

Versions: 74

Compression:

Stored size: 1.8 KB

Contents

unused_funarg_1: {
    options = { unused: true };
    input: {
        function f(a, b, c, d, e) {
            return a + b;
        }
    }
    expect: {
        function f(a, b) {
            return a + b;
        }
    }
}

unused_funarg_2: {
    options = { unused: true };
    input: {
        function f(a, b, c, d, e) {
            return a + c;
        }
    }
    expect: {
        function f(a, b, c) {
            return a + c;
        }
    }
}

unused_nested_function: {
    options = { unused: true };
    input: {
        function f(x, y) {
            function g() {
                something();
            }
            return x + y;
        }
    };
    expect: {
        function f(x, y) {
            return x + y;
        }
    }
}

unused_circular_references_1: {
    options = { unused: true };
    input: {
        function f(x, y) {
            // circular reference
            function g() {
                return h();
            }
            function h() {
                return g();
            }
            return x + y;
        }
    };
    expect: {
        function f(x, y) {
            return x + y;
        }
    }
}

unused_circular_references_2: {
    options = { unused: true };
    input: {
        function f(x, y) {
            var foo = 1, bar = baz, baz = foo + bar, qwe = moo();
            return x + y;
        }
    };
    expect: {
        function f(x, y) {
            moo();              // keeps side effect
            return x + y;
        }
    }
}

unused_circular_references_3: {
    options = { unused: true };
    input: {
        function f(x, y) {
            var g = function() { return h() };
            var h = function() { return g() };
            return x + y;
        }
    };
    expect: {
        function f(x, y) {
            return x + y;
        }
    }
}

Version data entries

74 entries across 74 versions & 5 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js