Debian Codegraph @

tests/snapshots/cli/legacy-exceptions/try_delegate.wast.json

raw
1 {
2 "source_filename": "tests/cli/legacy-exceptions/try_delegate.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 5,
7 "filename": "try_delegate.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 221,
13 "action": {
14 "type": "invoke",
15 "field": "delegate-no-throw",
16 "args": []
17 },
18 "expected": [
19 {
20 "type": "i32",
21 "value": "1"
22 }
23 ]
24 },
25 {
26 "type": "assert_return",
27 "line": 223,
28 "action": {
29 "type": "invoke",
30 "field": "delegate-throw",
31 "args": [
32 {
33 "type": "i32",
34 "value": "0"
35 }
36 ]
37 },
38 "expected": [
39 {
40 "type": "i32",
41 "value": "1"
42 }
43 ]
44 },
45 {
46 "type": "assert_return",
47 "line": 224,
48 "action": {
49 "type": "invoke",
50 "field": "delegate-throw",
51 "args": [
52 {
53 "type": "i32",
54 "value": "1"
55 }
56 ]
57 },
58 "expected": [
59 {
60 "type": "i32",
61 "value": "2"
62 }
63 ]
64 },
65 {
66 "type": "assert_exception",
67 "line": 226,
68 "action": {
69 "type": "invoke",
70 "field": "delegate-throw-no-catch",
71 "args": []
72 }
73 },
74 {
75 "type": "assert_return",
76 "line": 228,
77 "action": {
78 "type": "invoke",
79 "field": "delegate-merge",
80 "args": [
81 {
82 "type": "i32",
83 "value": "1"
84 },
85 {
86 "type": "i32",
87 "value": "0"
88 }
89 ]
90 },
91 "expected": [
92 {
93 "type": "i32",
94 "value": "2"
95 }
96 ]
97 },
98 {
99 "type": "assert_exception",
100 "line": 229,
101 "action": {
102 "type": "invoke",
103 "field": "delegate-merge",
104 "args": [
105 {
106 "type": "i32",
107 "value": "2"
108 },
109 {
110 "type": "i32",
111 "value": "0"
112 }
113 ]
114 }
115 },
116 {
117 "type": "assert_return",
118 "line": 230,
119 "action": {
120 "type": "invoke",
121 "field": "delegate-merge",
122 "args": [
123 {
124 "type": "i32",
125 "value": "0"
126 },
127 {
128 "type": "i32",
129 "value": "1"
130 }
131 ]
132 },
133 "expected": [
134 {
135 "type": "i32",
136 "value": "2"
137 }
138 ]
139 },
140 {
141 "type": "assert_exception",
142 "line": 231,
143 "action": {
144 "type": "invoke",
145 "field": "delegate-merge",
146 "args": [
147 {
148 "type": "i32",
149 "value": "0"
150 },
151 {
152 "type": "i32",
153 "value": "2"
154 }
155 ]
156 }
157 },
158 {
159 "type": "assert_return",
160 "line": 232,
161 "action": {
162 "type": "invoke",
163 "field": "delegate-merge",
164 "args": [
165 {
166 "type": "i32",
167 "value": "0"
168 },
169 {
170 "type": "i32",
171 "value": "0"
172 }
173 ]
174 },
175 "expected": [
176 {
177 "type": "i32",
178 "value": "1"
179 }
180 ]
181 },
182 {
183 "type": "assert_return",
184 "line": 234,
185 "action": {
186 "type": "invoke",
187 "field": "delegate-skip",
188 "args": []
189 },
190 "expected": [
191 {
192 "type": "i32",
193 "value": "3"
194 }
195 ]
196 },
197 {
198 "type": "assert_return",
199 "line": 236,
200 "action": {
201 "type": "invoke",
202 "field": "delegate-to-block",
203 "args": []
204 },
205 "expected": [
206 {
207 "type": "i32",
208 "value": "1"
209 }
210 ]
211 },
212 {
213 "type": "assert_return",
214 "line": 237,
215 "action": {
216 "type": "invoke",
217 "field": "delegate-to-catch",
218 "args": []
219 },
220 "expected": [
221 {
222 "type": "i32",
223 "value": "1"
224 }
225 ]
226 },
227 {
228 "type": "assert_exception",
229 "line": 239,
230 "action": {
231 "type": "invoke",
232 "field": "delegate-to-caller-trivial",
233 "args": []
234 }
235 },
236 {
237 "type": "assert_exception",
238 "line": 240,
239 "action": {
240 "type": "invoke",
241 "field": "delegate-to-caller-skipping",
242 "args": []
243 }
244 },
245 {
246 "type": "assert_return",
247 "line": 242,
248 "action": {
249 "type": "invoke",
250 "field": "delegate-correct-targets",
251 "args": []
252 },
253 "expected": [
254 {
255 "type": "i32",
256 "value": "1"
257 }
258 ]
259 },
260 {
261 "type": "assert_exception",
262 "line": 244,
263 "action": {
264 "type": "invoke",
265 "field": "return-call-in-try-delegate",
266 "args": []
267 }
268 },
269 {
270 "type": "assert_exception",
271 "line": 245,
272 "action": {
273 "type": "invoke",
274 "field": "return-call-indirect-in-try-delegate",
275 "args": []
276 }
277 },
278 {
279 "type": "assert_return",
280 "line": 247,
281 "action": {
282 "type": "invoke",
283 "field": "break-try-delegate",
284 "args": []
285 },
286 "expected": []
287 },
288 {
289 "type": "assert_return",
290 "line": 249,
291 "action": {
292 "type": "invoke",
293 "field": "break-and-call-throw",
294 "args": []
295 },
296 "expected": [
297 {
298 "type": "i32",
299 "value": "1"
300 }
301 ]
302 },
303 {
304 "type": "assert_return",
305 "line": 250,
306 "action": {
307 "type": "invoke",
308 "field": "break-and-throw",
309 "args": []
310 },
311 "expected": [
312 {
313 "type": "i32",
314 "value": "1"
315 }
316 ]
317 },
318 {
319 "type": "assert_invalid",
320 "line": 275,
321 "filename": "try_delegate.1.wasm",
322 "module_type": "binary",
323 "text": "unknown label"
324 }
325 ]
326 }