Skip to content

Commit 8b5eb9e

Browse files
test: updates test cases extracted from test262 (#205)
Co-authored-by: ota-meshi <[email protected]>
1 parent 5dcba6b commit 8b5eb9e

File tree

1 file changed

+225
-0
lines changed

1 file changed

+225
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
{
2+
"_test262FileNames": [
3+
"test/built-ins/String/prototype/matchAll/regexp-prototype-matchAll-v-u-flag.js"
4+
],
5+
"options": {},
6+
"patterns": {
7+
"/(?:)/gu": {
8+
"ast": {
9+
"type": "RegExpLiteral",
10+
"parent": null,
11+
"start": 0,
12+
"end": 8,
13+
"raw": "/(?:)/gu",
14+
"pattern": {
15+
"type": "Pattern",
16+
"parent": "♻️..",
17+
"start": 1,
18+
"end": 5,
19+
"raw": "(?:)",
20+
"alternatives": [
21+
{
22+
"type": "Alternative",
23+
"parent": "♻️../..",
24+
"start": 1,
25+
"end": 5,
26+
"raw": "(?:)",
27+
"elements": [
28+
{
29+
"type": "Group",
30+
"parent": "♻️../..",
31+
"start": 1,
32+
"end": 5,
33+
"raw": "(?:)",
34+
"alternatives": [
35+
{
36+
"type": "Alternative",
37+
"parent": "♻️../..",
38+
"start": 4,
39+
"end": 4,
40+
"raw": "",
41+
"elements": []
42+
}
43+
]
44+
}
45+
]
46+
}
47+
]
48+
},
49+
"flags": {
50+
"type": "Flags",
51+
"parent": "♻️..",
52+
"start": 6,
53+
"end": 8,
54+
"raw": "gu",
55+
"global": true,
56+
"ignoreCase": false,
57+
"multiline": false,
58+
"unicode": true,
59+
"sticky": false,
60+
"dotAll": false,
61+
"hasIndices": false,
62+
"unicodeSets": false
63+
}
64+
}
65+
},
66+
"/\\P{ASCII}/gu": {
67+
"ast": {
68+
"type": "RegExpLiteral",
69+
"parent": null,
70+
"start": 0,
71+
"end": 13,
72+
"raw": "/\\P{ASCII}/gu",
73+
"pattern": {
74+
"type": "Pattern",
75+
"parent": "♻️..",
76+
"start": 1,
77+
"end": 10,
78+
"raw": "\\P{ASCII}",
79+
"alternatives": [
80+
{
81+
"type": "Alternative",
82+
"parent": "♻️../..",
83+
"start": 1,
84+
"end": 10,
85+
"raw": "\\P{ASCII}",
86+
"elements": [
87+
{
88+
"type": "CharacterSet",
89+
"parent": "♻️../..",
90+
"start": 1,
91+
"end": 10,
92+
"raw": "\\P{ASCII}",
93+
"kind": "property",
94+
"strings": false,
95+
"key": "ASCII",
96+
"value": null,
97+
"negate": true
98+
}
99+
]
100+
}
101+
]
102+
},
103+
"flags": {
104+
"type": "Flags",
105+
"parent": "♻️..",
106+
"start": 11,
107+
"end": 13,
108+
"raw": "gu",
109+
"global": true,
110+
"ignoreCase": false,
111+
"multiline": false,
112+
"unicode": true,
113+
"sticky": false,
114+
"dotAll": false,
115+
"hasIndices": false,
116+
"unicodeSets": false
117+
}
118+
}
119+
},
120+
"/\\P{ASCII}/gv": {
121+
"ast": {
122+
"type": "RegExpLiteral",
123+
"parent": null,
124+
"start": 0,
125+
"end": 13,
126+
"raw": "/\\P{ASCII}/gv",
127+
"pattern": {
128+
"type": "Pattern",
129+
"parent": "♻️..",
130+
"start": 1,
131+
"end": 10,
132+
"raw": "\\P{ASCII}",
133+
"alternatives": [
134+
{
135+
"type": "Alternative",
136+
"parent": "♻️../..",
137+
"start": 1,
138+
"end": 10,
139+
"raw": "\\P{ASCII}",
140+
"elements": [
141+
{
142+
"type": "CharacterSet",
143+
"parent": "♻️../..",
144+
"start": 1,
145+
"end": 10,
146+
"raw": "\\P{ASCII}",
147+
"kind": "property",
148+
"strings": false,
149+
"key": "ASCII",
150+
"value": null,
151+
"negate": true
152+
}
153+
]
154+
}
155+
]
156+
},
157+
"flags": {
158+
"type": "Flags",
159+
"parent": "♻️..",
160+
"start": 11,
161+
"end": 13,
162+
"raw": "gv",
163+
"global": true,
164+
"ignoreCase": false,
165+
"multiline": false,
166+
"unicode": false,
167+
"sticky": false,
168+
"dotAll": false,
169+
"hasIndices": false,
170+
"unicodeSets": true
171+
}
172+
}
173+
},
174+
"/𠮷/gu": {
175+
"ast": {
176+
"type": "RegExpLiteral",
177+
"parent": null,
178+
"start": 0,
179+
"end": 6,
180+
"raw": "/𠮷/gu",
181+
"pattern": {
182+
"type": "Pattern",
183+
"parent": "♻️..",
184+
"start": 1,
185+
"end": 3,
186+
"raw": "𠮷",
187+
"alternatives": [
188+
{
189+
"type": "Alternative",
190+
"parent": "♻️../..",
191+
"start": 1,
192+
"end": 3,
193+
"raw": "𠮷",
194+
"elements": [
195+
{
196+
"type": "Character",
197+
"parent": "♻️../..",
198+
"start": 1,
199+
"end": 3,
200+
"raw": "𠮷",
201+
"value": 134071
202+
}
203+
]
204+
}
205+
]
206+
},
207+
"flags": {
208+
"type": "Flags",
209+
"parent": "♻️..",
210+
"start": 4,
211+
"end": 6,
212+
"raw": "gu",
213+
"global": true,
214+
"ignoreCase": false,
215+
"multiline": false,
216+
"unicode": true,
217+
"sticky": false,
218+
"dotAll": false,
219+
"hasIndices": false,
220+
"unicodeSets": false
221+
}
222+
}
223+
}
224+
}
225+
}

0 commit comments

Comments
 (0)