Change debugger input language from ECMASCRIPT_NEXT to ECMASCRIPT_2017.
We can consider moving it back to ES_NEXT, or adding an option to set ES_NEXT input, once object spread & rest are better supported in the compiler.
@@ -66,7 +66,7 @@ public enum CompilationParam {
TRANSPILE(true, ParamGroup.TRANSPILATION) {
@Override
public void apply(CompilerOptions options, boolean value) {
- options.setLanguageIn(CompilerOptions.LanguageMode.ECMASCRIPT_NEXT);
+ options.setLanguageIn(CompilerOptions.LanguageMode.ECMASCRIPT_2017);
options.setLanguageOut(
value
? CompilerOptions.LanguageMode.ECMASCRIPT5
