diff options
Diffstat (limited to 'test/compress/issue-1202.js')
-rw-r--r-- | test/compress/issue-1202.js | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/test/compress/issue-1202.js b/test/compress/issue-1202.js new file mode 100644 index 00000000..136515fd --- /dev/null +++ b/test/compress/issue-1202.js @@ -0,0 +1,52 @@ +mangle_keep_fnames_false: { + options = { + keep_fnames : true, + keep_fargs : true, + } + mangle = { + keep_fnames : false, + } + input: { + "use strict"; + function total() { + return function n(a, b, c) { + return a + b + c; + }; + } + } + expect: { + "use strict"; + function total() { + return function t(n, r, u) { + return n + r + u; + }; + } + } +} + +mangle_keep_fnames_true: { + options = { + keep_fnames : true, + keep_fargs : true, + } + mangle = { + keep_fnames : true, + } + input: { + "use strict"; + function total() { + return function n(a, b, c) { + return a + b + c; + }; + } + } + expect: { + "use strict"; + function total() { + return function n(t, r, u) { + return t + r + u; + }; + } + } +} + |