Debian Codegraph @

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

raw
1 {
2 "source_filename": "tests/cli/legacy-exceptions/rethrow.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 5,
7 "filename": "rethrow.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_exception",
12 "line": 102,
13 "action": {
14 "type": "invoke",
15 "field": "catch-rethrow-0",
16 "args": []
17 }
18 },
19 {
20 "type": "assert_exception",
21 "line": 104,
22 "action": {
23 "type": "invoke",
24 "field": "catch-rethrow-1",
25 "args": [
26 {
27 "type": "i32",
28 "value": "0"
29 }
30 ]
31 }
32 },
33 {
34 "type": "assert_return",
35 "line": 105,
36 "action": {
37 "type": "invoke",
38 "field": "catch-rethrow-1",
39 "args": [
40 {
41 "type": "i32",
42 "value": "1"
43 }
44 ]
45 },
46 "expected": [
47 {
48 "type": "i32",
49 "value": "23"
50 }
51 ]
52 },
53 {
54 "type": "assert_exception",
55 "line": 107,
56 "action": {
57 "type": "invoke",
58 "field": "catchall-rethrow-0",
59 "args": []
60 }
61 },
62 {
63 "type": "assert_exception",
64 "line": 109,
65 "action": {
66 "type": "invoke",
67 "field": "catchall-rethrow-1",
68 "args": [
69 {
70 "type": "i32",
71 "value": "0"
72 }
73 ]
74 }
75 },
76 {
77 "type": "assert_return",
78 "line": 110,
79 "action": {
80 "type": "invoke",
81 "field": "catchall-rethrow-1",
82 "args": [
83 {
84 "type": "i32",
85 "value": "1"
86 }
87 ]
88 },
89 "expected": [
90 {
91 "type": "i32",
92 "value": "23"
93 }
94 ]
95 },
96 {
97 "type": "assert_exception",
98 "line": 111,
99 "action": {
100 "type": "invoke",
101 "field": "rethrow-nested",
102 "args": [
103 {
104 "type": "i32",
105 "value": "0"
106 }
107 ]
108 }
109 },
110 {
111 "type": "assert_exception",
112 "line": 112,
113 "action": {
114 "type": "invoke",
115 "field": "rethrow-nested",
116 "args": [
117 {
118 "type": "i32",
119 "value": "1"
120 }
121 ]
122 }
123 },
124 {
125 "type": "assert_return",
126 "line": 113,
127 "action": {
128 "type": "invoke",
129 "field": "rethrow-nested",
130 "args": [
131 {
132 "type": "i32",
133 "value": "2"
134 }
135 ]
136 },
137 "expected": [
138 {
139 "type": "i32",
140 "value": "23"
141 }
142 ]
143 },
144 {
145 "type": "assert_return",
146 "line": 115,
147 "action": {
148 "type": "invoke",
149 "field": "rethrow-recatch",
150 "args": [
151 {
152 "type": "i32",
153 "value": "0"
154 }
155 ]
156 },
157 "expected": [
158 {
159 "type": "i32",
160 "value": "23"
161 }
162 ]
163 },
164 {
165 "type": "assert_return",
166 "line": 116,
167 "action": {
168 "type": "invoke",
169 "field": "rethrow-recatch",
170 "args": [
171 {
172 "type": "i32",
173 "value": "1"
174 }
175 ]
176 },
177 "expected": [
178 {
179 "type": "i32",
180 "value": "42"
181 }
182 ]
183 },
184 {
185 "type": "assert_exception",
186 "line": 118,
187 "action": {
188 "type": "invoke",
189 "field": "rethrow-stack-polymorphism",
190 "args": []
191 }
192 },
193 {
194 "type": "assert_invalid",
195 "line": 120,
196 "filename": "rethrow.1.wasm",
197 "module_type": "binary",
198 "text": "invalid rethrow label"
199 },
200 {
201 "type": "assert_invalid",
202 "line": 121,
203 "filename": "rethrow.2.wasm",
204 "module_type": "binary",
205 "text": "invalid rethrow label"
206 },
207 {
208 "type": "assert_invalid",
209 "line": 122,
210 "filename": "rethrow.3.wasm",
211 "module_type": "binary",
212 "text": "invalid rethrow label"
213 }
214 ]
215 }