Mark RuntimeTypeCheck as supporting ES_NEXT_IN
Moving transpilation past this pass causes some errors when the pass tries to run on features it says can't support. I think it makes more sense to allow running the pass, even if it crashes/doesn't work, since we don't currently maintain the RuntimeTypeCheck pass.
@@ -1967,7 +1967,7 @@ public final class DefaultPassConfig extends PassConfig {
(compiler) -> new RuntimeTypeCheck(compiler, options.runtimeTypeCheckLogFunction))
// TODO(bradfordcsmith): Drop support for this pass.
// It's never been updated to handle ES2016+ code, because it isn't worth the effort.
- .setFeatureSet(ES2015)
+ .setFeatureSetForChecks()
.build();
/** Generates unique ids. */
