Update CompilerTestCase to use ES_NEXT_IN in transpilation tests for testing optional chaining.
Optional chaining transpilation is tested in its own transpilation tests file RewriteOptionalChainingOperatorTest.java. This CL adds support to test optional chaining transpilation in tests that extend CompilerTestCase class (e.g. DisambiguatePropertiesTest).
@@ -1901,7 +1901,7 @@ public abstract class CompilerTestCase {
.build());
TranspilationPasses.addEs6ModulePass(
factories, new PreprocessorSymbolTable.CachedInstanceFactory());
- options.setLanguageIn(LanguageMode.ECMASCRIPT_NEXT);
+ options.setLanguageIn(LanguageMode.ECMASCRIPT_NEXT_IN);
options.setLanguageOut(LanguageMode.ECMASCRIPT5);
TranspilationPasses.addTranspilationRuntimeLibraries(factories, options);
TranspilationPasses.addPostCheckTranspilationPasses(factories, options);
