Add ES8_MODULES feature set method to renameLabels pass
@@ -2992,11 +2992,17 @@ public final class DefaultPassConfig extends PassConfig {
}
/** Renames labels */
- private final PassFactory renameLabels = new PassFactory("renameLabels", true) {
+ private final PassFactory renameLabels =
+ new PassFactory("renameLabels", true) {
@Override
protected CompilerPass create(AbstractCompiler compiler) {
return new RenameLabels(compiler);
}
+
+ @Override
+ protected FeatureSet featureSet() {
+ return ES8_MODULES;
+ }
};
/** Convert bracket access to dot access */
