Previous: T277675: Add native support for ES2016-ES2017 to the minifier | Next: T425099: Add native support for ES2021 to the minifier
Notable syntax features in later versions:
- ES2018:
- async iteration (for await)
- spread (...) in object literals
- regex features
- named capture groups
- lookbehind
- /s flag
- \p{...}
- ES2019:
- optional catch binding. T387432: Add minification support for optional catch binding
- allow U+2028 (LINE SEPARATOR) and U+2029 (PARAGRAPH SEPARATOR) in string literals. Ref https://262.ecma-international.org/9.0/#sec-literals-string-literals vs https://262.ecma-international.org/10.0/#sec-literals-string-literals, and https://node.green/#ES2019-misc-JSON-superset
support U+2028 (LINE SEPARATOR) and U+2029 (PARAGRAPH SEPARATOR) as whitespace(decision)
- ES2020:
- ?? nullish operator T351610: Support minification of ES2020 Nullish operator syntax
- ?. optional chaining operator
- dynamic import (ES2020 12.3 ImportCall)
- import.meta (ES2020 12.3 ImportMeta)
- export * as (ES2020 15.2.3 ExportFromClause)
- BigInt notation