Make sure VarCheck runs when the output language mode is ES6 or higher.
This is important both for the checks it does, and because it inserts synthetic definitions of variables that are referenced without being defined.
@@ -1785,7 +1785,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -3153,7 +3153,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
