Enable typechecking in ES2017 output
Currently the typechecking flags are no-ops for ES2017 output mode and above, but this CL will make the typecheck passes start running for ES2017 output.
@@ -76,8 +76,7 @@ public final class FeatureSet implements Serializable {
// OBJECT_PATTERN_REST is a 2018 feature, but its transpilation is done by the same pass that
// handles the destructuring transpilation done for ES6.
- public static final FeatureSet TYPE_CHECK_SUPPORTED =
- ES8.without(Feature.ASYNC_FUNCTIONS).with(Feature.OBJECT_PATTERN_REST);
+ public static final FeatureSet TYPE_CHECK_SUPPORTED = ES8.with(Feature.OBJECT_PATTERN_REST);
private enum LangVersion {
ES3,
