Enable ES8_MODULES FeatureSet for nameUnmappedAnonymousFunctions and nameMappedAnonymousFunctions.
@@ -2948,6 +2948,11 @@ public final class DefaultPassConfig extends PassConfig {
protected CompilerPass create(AbstractCompiler compiler) {
return new NameAnonymousFunctions(compiler);
}
+
+ @Override
+ protected FeatureSet featureSet() {
+ return FeatureSet.ES8_MODULES;
+ }
};
private final PassFactory nameMappedAnonymousFunctions =
@@ -2965,6 +2970,11 @@ public final class DefaultPassConfig extends PassConfig {
}
};
}
+
+ @Override
+ protected FeatureSet featureSet() {
+ return FeatureSet.ES8_MODULES;
+ }
};
/**
