Enable several more passes in ES6-out mode.
@@ -1050,7 +1050,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -1092,7 +1092,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -1418,7 +1418,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
public FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -1461,7 +1461,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -1541,7 +1541,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
public FeatureSet featureSet() {
- return ES8;
+ return FeatureSet.latest();
}
};
}
@@ -1821,7 +1821,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -1835,7 +1835,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -1849,7 +1849,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -1863,7 +1863,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -2263,6 +2263,11 @@ public final class DefaultPassConfig extends PassConfig {
protected CompilerPass create(AbstractCompiler compiler) {
return new ConstCheck(compiler);
}
+
+ @Override
+ public FeatureSet featureSet() {
+ return ES8_MODULES;
+ }
};
/** Checks that the arguments are constants */
@@ -3250,7 +3255,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -3276,7 +3281,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
@@ -3375,7 +3380,7 @@ public final class DefaultPassConfig extends PassConfig {
@Override
protected FeatureSet featureSet() {
- return ES8;
+ return ES8_MODULES;
}
};
