diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-11-30 11:26:37 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-11-30 11:26:37 +0200 |
commit | b5c3253b493b9e2428d5702169e5687f42fc6213 (patch) | |
tree | 8be23ec46ffc97dc0072a7b65484dc64ac51eee6 | |
parent | 5cc90db7d0c8983b6cae38df9dca540acbc1481b (diff) | |
download | tracifyjs-b5c3253b493b9e2428d5702169e5687f42fc6213.tar.gz tracifyjs-b5c3253b493b9e2428d5702169e5687f42fc6213.zip |
Add test for issue #59
-rw-r--r-- | test/compress/issue-59.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/compress/issue-59.js b/test/compress/issue-59.js new file mode 100644 index 00000000..82b38806 --- /dev/null +++ b/test/compress/issue-59.js @@ -0,0 +1,30 @@ +keep_continue: { + options = { + dead_code: true, + evaluate: true + }; + input: { + while (a) { + if (b) { + switch (true) { + case c(): + d(); + } + continue; + } + f(); + } + } + expect: { + while (a) { + if (b) { + switch (true) { + case c(): + d(); + } + continue; + } + f(); + } + } +} |