Update TYPE_CHECK_SUPPORTED to be ES2018. Should be nothing to do on our end for the regex features [or rather nothing we can do].
@@ -77,21 +77,7 @@ public final class FeatureSet implements Serializable {
public static final FeatureSet TYPESCRIPT = ES_NEXT.with(LangVersion.TYPESCRIPT.features());
- public static final FeatureSet TYPE_CHECK_SUPPORTED =
- // We are working to expand from ES8 to ES2018. We are currently missing:
- // - REGEXP_FLAG_S
- // - REGEXP_LOOKBEHIND
- // - REGEXP_NAMED_GROUPS
- // - REGEXP_UNICODE_PROPERTY_ESCAPE
- ES8.with(
- // OBJECT_PATTERN_REST is a 2018 feature, but its transpilation is done by the same pass
- // that handles the destructuring transpilation done for ES6.
- Feature.OBJECT_PATTERN_REST,
- // rewriteObjectSpread is now after type checking.
- Feature.OBJECT_LITERALS_WITH_SPREAD,
- // rewriteAsyncIteration handles both async generators and for-await-of.
- Feature.ASYNC_GENERATORS,
- Feature.FOR_AWAIT_OF);
+ public static final FeatureSet TYPE_CHECK_SUPPORTED = ES2018;
private enum LangVersion {
ES3,
