Don't rewrite rest and spread during checks only builds
@@ -96,12 +96,12 @@ public class TranspilationPasses {
passes.add(es6ExtractClasses);
passes.add(es6RewriteClass);
passes.add(es6InjectRuntimeLibraries);
- passes.add(es6RewriteRestAndSpread);
if (!options.checksOnly) {
// Don't run these passes in checksOnly mode since all the typechecking & checks passes
// support the transpiled features.
// TODO(b/73387406): Move each pass above here temporarily, then into
// addEs6PostTypecheckPasses once the pass supports propagating type information
+ passes.add(es6RewriteRestAndSpread);
}
}
