14871eccc29de8c880889ceca549116bbe2b7b17
[WebKit-https.git] / LayoutTests / fast / js / regexp-caching-expected.txt
1 This test checks our implementation of the special RegExp member variables.
2
3 Properties of RegExp at startup:
4
5 input: {} (read-write)
6
7 $5: {} (read-only)
8
9 $3: {} (read-only)
10
11 $1: {} (read-only)
12
13 multiline: {false} (read-write)
14
15 lastParen: {} (read-only)
16
17 rightContext: {} (read-only)
18
19 lastMatch: {} (read-only)
20
21 $4: {} (read-only)
22
23 leftContext: {} (read-only)
24
25 $2: {} (read-only)
26
27 $6: {} (read-only)
28
29 $7: {} (read-only)
30
31 $8: {} (read-only)
32
33 $9: {} (read-only)
34
35
36 Properties of RegExp after /(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/.exec(<1234567890>):
37
38 input: {<1234567890>}
39
40 $5: {5}
41
42 $3: {3}
43
44 $1: {1}
45
46 multiline: {false}
47
48 lastParen: {0}
49
50 rightContext: {>}
51
52 lastMatch: {1234567890}
53
54 $4: {4}
55
56 leftContext: {<}
57
58 $2: {2}
59
60 $6: {6}
61
62 $7: {7}
63
64 $8: {8}
65
66 $9: {9}
67
68
69 RegExp.$0 does not exist
70
71 RegExp.$10 does not exist
72
73 RegExp uses RegExp.input
74
75 RegExp.multiline coerces values to booleans
76
77 RegExp.input coerces values to strings
78
79
80 Properties of RegExp after /(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/.exec(XXX):
81
82 input: {0}
83
84 $5: {}
85
86 $3: {}
87
88 $1: {}
89
90 multiline: {true}
91
92 lastParen: {}
93
94 rightContext: {}
95
96 lastMatch: {}
97
98 $4: {}
99
100 leftContext: {0}
101
102 $2: {}
103
104 $6: {}
105
106 $7: {}
107
108 $8: {}
109
110 $9: {}
111
112
113 ---------- [Cleared RegExp values] ----------
114
115 Properties of RegExp after <1234567890>.search(/(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/):
116
117 input: {<1234567890>}
118
119 $5: {5}
120
121 $3: {3}
122
123 $1: {1}
124
125 multiline: {true}
126
127 lastParen: {0}
128
129 rightContext: {>}
130
131 lastMatch: {1234567890}
132
133 $4: {4}
134
135 leftContext: {<}
136
137 $2: {2}
138
139 $6: {6}
140
141 $7: {7}
142
143 $8: {8}
144
145 $9: {9}
146
147
148 ---------- [Cleared RegExp values] ----------
149
150 Properties of RegExp after <1234567890>.replace(/(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/):
151
152 input: {<1234567890>}
153
154 $5: {5}
155
156 $3: {3}
157
158 $1: {1}
159
160 multiline: {true}
161
162 lastParen: {0}
163
164 rightContext: {>}
165
166 lastMatch: {1234567890}
167
168 $4: {4}
169
170 leftContext: {<}
171
172 $2: {2}
173
174 $6: {6}
175
176 $7: {7}
177
178 $8: {8}
179
180 $9: {9}