react / wstein / node_modules / jest-cli / node_modules / istanbul / node_modules / handlebars / node_modules / uglify-js / test / compress / drop-unused.js
80728 viewsunused_funarg_1: {1options = { unused: true };2input: {3function f(a, b, c, d, e) {4return a + b;5}6}7expect: {8function f(a, b) {9return a + b;10}11}12}1314unused_funarg_2: {15options = { unused: true };16input: {17function f(a, b, c, d, e) {18return a + c;19}20}21expect: {22function f(a, b, c) {23return a + c;24}25}26}2728unused_nested_function: {29options = { unused: true };30input: {31function f(x, y) {32function g() {33something();34}35return x + y;36}37};38expect: {39function f(x, y) {40return x + y;41}42}43}4445unused_circular_references_1: {46options = { unused: true };47input: {48function f(x, y) {49// circular reference50function g() {51return h();52}53function h() {54return g();55}56return x + y;57}58};59expect: {60function f(x, y) {61return x + y;62}63}64}6566unused_circular_references_2: {67options = { unused: true };68input: {69function f(x, y) {70var foo = 1, bar = baz, baz = foo + bar, qwe = moo();71return x + y;72}73};74expect: {75function f(x, y) {76moo(); // keeps side effect77return x + y;78}79}80}8182unused_circular_references_3: {83options = { unused: true };84input: {85function f(x, y) {86var g = function() { return h() };87var h = function() { return g() };88return x + y;89}90};91expect: {92function f(x, y) {93return x + y;94}95}96}979899