diff options
author | Mihai Bazon <mihai@bazon.net> | 2015-01-05 11:11:38 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2015-01-05 11:11:38 +0200 |
commit | fe55e0d93df173b4ef9a7035c3b3883acd0fa3e5 (patch) | |
tree | 4de6c25d8261f331b82a0a12066e9bc0020b706a | |
parent | e1f0747e4cca7b77a0189dacbff9fa4800a2835c (diff) | |
parent | 0d48af3f36e99252a42b2f40d8fc6d361aa5a7b1 (diff) | |
download | tracifyjs-fe55e0d93df173b4ef9a7035c3b3883acd0fa3e5.tar.gz tracifyjs-fe55e0d93df173b4ef9a7035c3b3883acd0fa3e5.zip |
Merge branch 'keep-function-expression-names' of https://github.com/rvanvelzen/UglifyJS2
-rw-r--r-- | test/compress/drop-unused.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js index 89bf0088..de4b2220 100644 --- a/test/compress/drop-unused.js +++ b/test/compress/drop-unused.js @@ -163,3 +163,17 @@ used_var_in_catch: { } } } + +keep_fnames: { + options = { unused: true, keep_fnames: true }; + input: { + function foo() { + return function bar(baz) {}; + } + } + expect: { + function foo() { + return function bar() {}; + } + } +}
\ No newline at end of file |