JS: transfer all empty statement simplifications RedundantLabelRemoval to EmptyStatementElimination, so that empty statements can be eliminated everywhere, not in labeled blocks only.

This commit is contained in:
Alexey Andreev
2017-01-19 18:53:56 +03:00
parent ac0df8eef9
commit c1838d423b
10 changed files with 148 additions and 87 deletions
@@ -18,8 +18,10 @@ package org.jetbrains.kotlin.js.test.optimizer
import org.junit.Test
class RedundantLabelRemovalTest : BasicOptimizerTest("redundant-label-removal") {
class EmptyStatementEliminationTest : BasicOptimizerTest("empty-statement-elimination") {
@Test fun emptyIfConditionPreserved() = box()
@Test fun ifWithEmptyThenAndNoElse() = box()
@Test fun emptyBlockEliminated() = box()
}