Add test for issue #59
This commit is contained in:
30
test/compress/issue-59.js
Normal file
30
test/compress/issue-59.js
Normal file
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user