@@ -10,11 +10,6 @@ const ignoredFeatures = new Set([
10
10
"__proto__" ,
11
11
"__setter__" ,
12
12
"AggregateError" ,
13
- "Array.prototype.at" ,
14
- "Array.prototype.flat" ,
15
- "Array.prototype.flatMap" ,
16
- "Array.prototype.item" ,
17
- "Array.prototype.values" ,
18
13
"ArrayBuffer" ,
19
14
"align-detached-buffer-semantics-with-web-reality" ,
20
15
"arbitrary-module-namespace-names" ,
@@ -41,14 +36,6 @@ const ignoredFeatures = new Set([
41
36
"const" ,
42
37
"cross-realm" ,
43
38
"DataView" ,
44
- "DataView.prototype.getFloat32" ,
45
- "DataView.prototype.getFloat64" ,
46
- "DataView.prototype.getInt8" ,
47
- "DataView.prototype.getInt16" ,
48
- "DataView.prototype.getInt32" ,
49
- "DataView.prototype.getUint16" ,
50
- "DataView.prototype.getUint32" ,
51
- "DataView.prototype.setUint8" ,
52
39
"default-parameters" ,
53
40
"destructuring-assignment" ,
54
41
"destructuring-binding" ,
@@ -70,20 +57,6 @@ const ignoredFeatures = new Set([
70
57
"Int16Array" ,
71
58
"Int32Array" ,
72
59
"Intl-enumeration" ,
73
- "Intl.DateTimeFormat-datetimestyle" ,
74
- "Intl.DateTimeFormat-dayPeriod" ,
75
- "Intl.DateTimeFormat-extend-timezonename" ,
76
- "Intl.DateTimeFormat-fractionalSecondDigits" ,
77
- "Intl.DateTimeFormat-formatRange" ,
78
- "Intl.DisplayNames" ,
79
- "Intl.DisplayNames-v2" ,
80
- "Intl.ListFormat" ,
81
- "Intl.Locale" ,
82
- "Intl.Locale-info" ,
83
- "Intl.NumberFormat-unified" ,
84
- "Intl.NumberFormat-v3" ,
85
- "Intl.RelativeTimeFormat" ,
86
- "Intl.Segmenter" ,
87
60
"IsHTMLDDA" ,
88
61
"import.meta" ,
89
62
"intl-normative-optional" ,
@@ -122,14 +95,6 @@ const ignoredFeatures = new Set([
122
95
"SharedArrayBuffer" ,
123
96
"Set" ,
124
97
"String.fromCodePoint" ,
125
- "String.prototype.at" ,
126
- "String.prototype.endsWith" ,
127
- "String.prototype.includes" ,
128
- "String.prototype.item" ,
129
- "String.prototype.matchAll" ,
130
- "String.prototype.replaceAll" ,
131
- "String.prototype.trimEnd" ,
132
- "String.prototype.trimStart" ,
133
98
"string-trimming" ,
134
99
"super" ,
135
100
"Symbol" ,
@@ -152,8 +117,6 @@ const ignoredFeatures = new Set([
152
117
"top-level-await" ,
153
118
"Temporal" ,
154
119
"TypedArray" ,
155
- "TypedArray.prototype.at" ,
156
- "TypedArray.prototype.item" ,
157
120
"u180e" ,
158
121
"Uint8Array" ,
159
122
"Uint8ClampedArray" ,
@@ -165,6 +128,16 @@ const ignoredFeatures = new Set([
165
128
"well-formed-json-stringify" ,
166
129
] ) ;
167
130
131
+ function featureShouldIgnore ( feature ) {
132
+ return (
133
+ ignoredFeatures . has ( feature ) ||
134
+ // All prototype method must not introduce new language syntax
135
+ feature . includes ( ".prototype." ) ||
136
+ // Ignore Intl features
137
+ feature . startsWith ( "Intl." )
138
+ ) ;
139
+ }
140
+
168
141
const ignoredTests = [ "built-ins/RegExp/" , "language/literals/regexp/" ] ;
169
142
170
143
const featuresToPlugins = new Map ( [ [ "import-assertions" , "importAssertions" ] ] ) ;
@@ -177,7 +150,7 @@ function* getPlugins(features) {
177
150
for ( const f of features ) {
178
151
if ( featuresToPlugins . has ( f ) ) {
179
152
yield featuresToPlugins . get ( f ) ;
180
- } else if ( ! ignoredFeatures . has ( f ) ) {
153
+ } else if ( ! featureShouldIgnore ( f ) ) {
181
154
unmappedFeatures . add ( f ) ;
182
155
}
183
156
}
0 commit comments