File tree 4 files changed +22
-0
lines changed
library/src/main/scala/scala/scalajs
linker-interface/shared/src/main/scala/org/scalajs/linker/interface
test-suite/js/src/test/scala/org/scalajs/testsuite/library
4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,7 @@ def allESVersions = [
443
443
" ES2018" ,
444
444
// "ES2019", // We do not use anything specifically from ES2019
445
445
" ES2020"
446
+ // "ES2021", // We do not use anything specifically from ES2021
446
447
]
447
448
448
449
// The 'quick' matrix
Original file line number Diff line number Diff line change @@ -281,5 +281,15 @@ object LinkingInfo {
281
281
* - `import.meta`
282
282
*/
283
283
final val ES2020 = 11
284
+
285
+ /** ECMAScript 2021 (12th edition).
286
+ *
287
+ * Contains the following notable features:
288
+ *
289
+ * - `WeakRef` and `FinalizationRegistry`
290
+ * - `AggregateError`
291
+ * - Separators for numeric literals (e.g., `1_000`)
292
+ */
293
+ final val ES2021 = 12
284
294
}
285
295
}
Original file line number Diff line number Diff line change @@ -86,6 +86,16 @@ object ESVersion {
86
86
*/
87
87
val ES2020 : ESVersion = new ESVersion (11 , " ECMAScript 2020" )
88
88
89
+ /** ECMAScript 2021 (12th edition).
90
+ *
91
+ * Contains the following notable features:
92
+ *
93
+ * - `WeakRef` and `FinalizationRegistry`
94
+ * - `AggregateError`
95
+ * - Separators for numeric literals (e.g., `1_000`)
96
+ */
97
+ val ES2021 : ESVersion = new ESVersion (12 , " ECMAScript 2021" )
98
+
89
99
private [interface] implicit object ESVersionFingerprint
90
100
extends Fingerprint [ESVersion ] {
91
101
Original file line number Diff line number Diff line change @@ -45,5 +45,6 @@ class LinkingInfoTest {
45
45
assertEquals(9 , ESVersion .ES2018 )
46
46
assertEquals(10 , ESVersion .ES2019 )
47
47
assertEquals(11 , ESVersion .ES2020 )
48
+ assertEquals(12 , ESVersion .ES2021 )
48
49
}
49
50
}
You can’t perform that action at this time.
0 commit comments