Adding for of tests to PeepholeMinimizeConditions.
@@ -412,6 +412,11 @@ public final class PeepholeMinimizeConditionsTest extends TypeICompilerTestCase
foldSame("for(a in {}) foo()");
foldSame("for(a in []) foo()");
fold("for(a in !!true) foo()", "for(a in !0) foo()");
+
+ foldSame("for(a of b) foo()");
+ foldSame("for(a of {}) foo()");
+ foldSame("for(a of []) foo()");
+ fold("for(a of !!true) foo()", "for(a of !0) foo()");
}
public void testMinimizeCondition_example1() {
