Fail-fast on invalid trailing commas for older browsers
@@ -132,6 +132,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",
]
js_binary(
