author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 29407 | nashorn/test/script/basic/parser/tryCatchStat.js.EXPECTED@3fd4ede1581e |
permissions | -rw-r--r-- |
29407 | 1 |
{ |
2 |
"type": "Program", |
|
3 |
"body": [ |
|
4 |
{ |
|
5 |
"type": "TryStatement", |
|
6 |
"block": { |
|
7 |
"type": "BlockStatement", |
|
8 |
"body": [] |
|
9 |
}, |
|
10 |
"guardedHandlers": [], |
|
11 |
"handler": { |
|
12 |
"type": "CatchClause", |
|
13 |
"param": { |
|
14 |
"type": "Identifier", |
|
15 |
"name": "e" |
|
16 |
}, |
|
17 |
"body": { |
|
18 |
"type": "BlockStatement", |
|
19 |
"body": [] |
|
20 |
} |
|
21 |
}, |
|
22 |
"finalizer": null |
|
23 |
} |
|
24 |
] |
|
25 |
} |
|
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
26 |
{ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
27 |
"type": "Program", |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
28 |
"body": [ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
29 |
{ |
29407 | 30 |
"type": "TryStatement", |
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
31 |
"block": { |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
32 |
"type": "BlockStatement", |
29407 | 33 |
"body": [] |
34 |
}, |
|
35 |
"guardedHandlers": [], |
|
36 |
"handler": { |
|
37 |
"type": "CatchClause", |
|
38 |
"param": { |
|
39 |
"type": "Identifier", |
|
40 |
"name": "e" |
|
41 |
}, |
|
42 |
"body": { |
|
43 |
"type": "BlockStatement", |
|
44 |
"body": [] |
|
45 |
} |
|
46 |
}, |
|
47 |
"finalizer": { |
|
48 |
"type": "BlockStatement", |
|
49 |
"body": [] |
|
50 |
} |
|
51 |
} |
|
52 |
] |
|
53 |
} |
|
54 |
{ |
|
55 |
"type": "Program", |
|
56 |
"body": [ |
|
57 |
{ |
|
58 |
"type": "TryStatement", |
|
59 |
"block": { |
|
60 |
"type": "BlockStatement", |
|
61 |
"body": [] |
|
62 |
}, |
|
63 |
"guardedHandlers": [], |
|
64 |
"handler": null, |
|
65 |
"finalizer": { |
|
66 |
"type": "BlockStatement", |
|
67 |
"body": [] |
|
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
68 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
69 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
70 |
] |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
71 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
72 |
{ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
73 |
"type": "Program", |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
74 |
"body": [ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
75 |
{ |
29407 | 76 |
"type": "TryStatement", |
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
77 |
"block": { |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
78 |
"type": "BlockStatement", |
29407 | 79 |
"body": [] |
80 |
}, |
|
81 |
"guardedHandlers": [], |
|
82 |
"handler": { |
|
83 |
"type": "CatchClause", |
|
84 |
"param": { |
|
85 |
"type": "Identifier", |
|
86 |
"name": "e" |
|
87 |
}, |
|
88 |
"body": { |
|
89 |
"type": "BlockStatement", |
|
90 |
"body": [ |
|
91 |
{ |
|
92 |
"type": "ExpressionStatement", |
|
93 |
"expression": { |
|
94 |
"type": "CallExpression", |
|
95 |
"callee": { |
|
96 |
"type": "Identifier", |
|
97 |
"name": "handle" |
|
98 |
}, |
|
99 |
"arguments": [] |
|
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
100 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
101 |
} |
29407 | 102 |
] |
103 |
} |
|
104 |
}, |
|
105 |
"finalizer": null |
|
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
106 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
107 |
] |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
108 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
109 |
{ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
110 |
"type": "Program", |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
111 |
"body": [ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
112 |
{ |
29407 | 113 |
"type": "TryStatement", |
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
114 |
"block": { |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
115 |
"type": "BlockStatement", |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
116 |
"body": [ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
117 |
{ |
29407 | 118 |
"type": "ExpressionStatement", |
119 |
"expression": { |
|
120 |
"type": "CallExpression", |
|
121 |
"callee": { |
|
122 |
"type": "Identifier", |
|
123 |
"name": "that" |
|
124 |
}, |
|
125 |
"arguments": [] |
|
126 |
} |
|
127 |
} |
|
128 |
] |
|
129 |
}, |
|
130 |
"guardedHandlers": [], |
|
131 |
"handler": { |
|
132 |
"type": "CatchClause", |
|
133 |
"param": { |
|
134 |
"type": "Identifier", |
|
135 |
"name": "e" |
|
136 |
}, |
|
137 |
"body": { |
|
138 |
"type": "BlockStatement", |
|
139 |
"body": [ |
|
140 |
{ |
|
141 |
"type": "ExpressionStatement", |
|
142 |
"expression": { |
|
143 |
"type": "CallExpression", |
|
144 |
"callee": { |
|
145 |
"type": "Identifier", |
|
146 |
"name": "handle" |
|
147 |
}, |
|
148 |
"arguments": [] |
|
149 |
} |
|
150 |
} |
|
151 |
] |
|
152 |
} |
|
153 |
}, |
|
154 |
"finalizer": { |
|
155 |
"type": "BlockStatement", |
|
156 |
"body": [ |
|
157 |
{ |
|
158 |
"type": "ExpressionStatement", |
|
159 |
"expression": { |
|
160 |
"type": "CallExpression", |
|
161 |
"callee": { |
|
162 |
"type": "Identifier", |
|
163 |
"name": "clean" |
|
164 |
}, |
|
165 |
"arguments": [] |
|
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
166 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
167 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
168 |
] |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
169 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
170 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
171 |
] |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
172 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
173 |
{ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
174 |
"type": "Program", |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
175 |
"body": [ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
176 |
{ |
29407 | 177 |
"type": "TryStatement", |
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
178 |
"block": { |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
179 |
"type": "BlockStatement", |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
180 |
"body": [ |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
181 |
{ |
29407 | 182 |
"type": "ExpressionStatement", |
183 |
"expression": { |
|
184 |
"type": "CallExpression", |
|
185 |
"callee": { |
|
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
186 |
"type": "Identifier", |
29407 | 187 |
"name": "that" |
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
188 |
}, |
29407 | 189 |
"arguments": [] |
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
190 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
191 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
192 |
] |
29407 | 193 |
}, |
194 |
"guardedHandlers": [ |
|
195 |
{ |
|
196 |
"type": "CatchClause", |
|
197 |
"param": { |
|
198 |
"type": "Identifier", |
|
199 |
"name": "e" |
|
200 |
}, |
|
201 |
"guard": { |
|
202 |
"type": "BinaryExpression", |
|
203 |
"operator": "instanceof", |
|
204 |
"left": { |
|
205 |
"type": "Identifier", |
|
206 |
"name": "e" |
|
207 |
}, |
|
208 |
"right": { |
|
209 |
"type": "Identifier", |
|
210 |
"name": "TypeError" |
|
211 |
} |
|
212 |
}, |
|
213 |
"body": { |
|
214 |
"type": "BlockStatement", |
|
215 |
"body": [ |
|
216 |
{ |
|
217 |
"type": "ExpressionStatement", |
|
218 |
"expression": { |
|
219 |
"type": "CallExpression", |
|
220 |
"callee": { |
|
221 |
"type": "Identifier", |
|
222 |
"name": "handle" |
|
223 |
}, |
|
224 |
"arguments": [] |
|
225 |
} |
|
226 |
} |
|
227 |
] |
|
228 |
} |
|
229 |
} |
|
230 |
], |
|
231 |
"handler": { |
|
232 |
"type": "CatchClause", |
|
233 |
"param": { |
|
234 |
"type": "Identifier", |
|
235 |
"name": "e" |
|
236 |
}, |
|
237 |
"body": { |
|
238 |
"type": "BlockStatement", |
|
239 |
"body": [ |
|
240 |
{ |
|
241 |
"type": "ExpressionStatement", |
|
242 |
"expression": { |
|
243 |
"type": "CallExpression", |
|
244 |
"callee": { |
|
245 |
"type": "Identifier", |
|
246 |
"name": "rest" |
|
247 |
}, |
|
248 |
"arguments": [] |
|
249 |
} |
|
250 |
} |
|
251 |
] |
|
252 |
} |
|
253 |
}, |
|
254 |
"finalizer": null |
|
19894
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
255 |
} |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
256 |
] |
195477810711
8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff
changeset
|
257 |
} |