Remove explicitly set language mode, the default is now ECMASCRIPT_2017 (aka ES8) and the language versions will be advancing much more quickly in coming years.
go/js-lang-mode-lsc
Tested:
TAP --sample for global presubmit queue
@@ -130,8 +130,8 @@ COMFORMANCE_CHECK_FLAGS = J2CL_OPTIMIZED_DEFS + VERBOSE_WARNING_FLAGS_STRICT + [
"--jscomp_error=conformanceViolations",
# TODO(michaelthomas): Enable once all errors are fixed. Yes, seriously.
# "--jscomp_error=reportUnknownTypes",
- # Fail-fast on invalid trailing commas for older browsers
- "--language_in=ECMASCRIPT_2015",
+ # TODO(goktug): Move to J2CL_OPTIMIZED_DEFS
+ "--language_out=ECMASCRIPT5_STRICT",
]
js_binary(
