Turn on typeInfoValidation which was mistakenly disabled
*/
package com.google.javascript.jscomp;
+import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@@ -23,6 +24,14 @@ import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public final class RewriteNullishCoalesceOperatorTest extends CompilerTestCase {
+ @Override
+ @Before
+ public void setUp() throws Exception {
+ super.setUp();
+ enableTypeCheck();
+ enableTypeInfoValidation();
+ }
+
@Override
protected CompilerPass getProcessor(Compiler compiler) {
return new RewriteNullishCoalesceOperator(compiler);
