Debian Codegraph @

tests/snapshots/testsuite/table_set.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/table_set.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "table_set.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 29,
13 "action": {
14 "type": "invoke",
15 "field": "get-externref",
16 "args": [
17 {
18 "type": "i32",
19 "value": "0"
20 }
21 ]
22 },
23 "expected": [
24 {
25 "type": "externref",
26 "value": "null"
27 }
28 ]
29 },
30 {
31 "type": "assert_return",
32 "line": 30,
33 "action": {
34 "type": "invoke",
35 "field": "set-externref",
36 "args": [
37 {
38 "type": "i32",
39 "value": "0"
40 },
41 {
42 "type": "externref",
43 "value": "1"
44 }
45 ]
46 },
47 "expected": []
48 },
49 {
50 "type": "assert_return",
51 "line": 31,
52 "action": {
53 "type": "invoke",
54 "field": "get-externref",
55 "args": [
56 {
57 "type": "i32",
58 "value": "0"
59 }
60 ]
61 },
62 "expected": [
63 {
64 "type": "externref",
65 "value": "1"
66 }
67 ]
68 },
69 {
70 "type": "assert_return",
71 "line": 32,
72 "action": {
73 "type": "invoke",
74 "field": "set-externref",
75 "args": [
76 {
77 "type": "i32",
78 "value": "0"
79 },
80 {
81 "type": "externref",
82 "value": "null"
83 }
84 ]
85 },
86 "expected": []
87 },
88 {
89 "type": "assert_return",
90 "line": 33,
91 "action": {
92 "type": "invoke",
93 "field": "get-externref",
94 "args": [
95 {
96 "type": "i32",
97 "value": "0"
98 }
99 ]
100 },
101 "expected": [
102 {
103 "type": "externref",
104 "value": "null"
105 }
106 ]
107 },
108 {
109 "type": "assert_return",
110 "line": 35,
111 "action": {
112 "type": "invoke",
113 "field": "get-funcref",
114 "args": [
115 {
116 "type": "i32",
117 "value": "0"
118 }
119 ]
120 },
121 "expected": [
122 {
123 "type": "funcref",
124 "value": "null"
125 }
126 ]
127 },
128 {
129 "type": "assert_return",
130 "line": 36,
131 "action": {
132 "type": "invoke",
133 "field": "set-funcref-from",
134 "args": [
135 {
136 "type": "i32",
137 "value": "0"
138 },
139 {
140 "type": "i32",
141 "value": "1"
142 }
143 ]
144 },
145 "expected": []
146 },
147 {
148 "type": "assert_return",
149 "line": 37,
150 "action": {
151 "type": "invoke",
152 "field": "is_null-funcref",
153 "args": [
154 {
155 "type": "i32",
156 "value": "0"
157 }
158 ]
159 },
160 "expected": [
161 {
162 "type": "i32",
163 "value": "0"
164 }
165 ]
166 },
167 {
168 "type": "assert_return",
169 "line": 38,
170 "action": {
171 "type": "invoke",
172 "field": "set-funcref",
173 "args": [
174 {
175 "type": "i32",
176 "value": "0"
177 },
178 {
179 "type": "funcref",
180 "value": "null"
181 }
182 ]
183 },
184 "expected": []
185 },
186 {
187 "type": "assert_return",
188 "line": 39,
189 "action": {
190 "type": "invoke",
191 "field": "get-funcref",
192 "args": [
193 {
194 "type": "i32",
195 "value": "0"
196 }
197 ]
198 },
199 "expected": [
200 {
201 "type": "funcref",
202 "value": "null"
203 }
204 ]
205 },
206 {
207 "type": "assert_trap",
208 "line": 41,
209 "action": {
210 "type": "invoke",
211 "field": "set-externref",
212 "args": [
213 {
214 "type": "i32",
215 "value": "2"
216 },
217 {
218 "type": "externref",
219 "value": "null"
220 }
221 ]
222 },
223 "text": "out of bounds table access"
224 },
225 {
226 "type": "assert_trap",
227 "line": 42,
228 "action": {
229 "type": "invoke",
230 "field": "set-funcref",
231 "args": [
232 {
233 "type": "i32",
234 "value": "3"
235 },
236 {
237 "type": "funcref",
238 "value": "null"
239 }
240 ]
241 },
242 "text": "out of bounds table access"
243 },
244 {
245 "type": "assert_trap",
246 "line": 43,
247 "action": {
248 "type": "invoke",
249 "field": "set-externref",
250 "args": [
251 {
252 "type": "i32",
253 "value": "-1"
254 },
255 {
256 "type": "externref",
257 "value": "null"
258 }
259 ]
260 },
261 "text": "out of bounds table access"
262 },
263 {
264 "type": "assert_trap",
265 "line": 44,
266 "action": {
267 "type": "invoke",
268 "field": "set-funcref",
269 "args": [
270 {
271 "type": "i32",
272 "value": "-1"
273 },
274 {
275 "type": "funcref",
276 "value": "null"
277 }
278 ]
279 },
280 "text": "out of bounds table access"
281 },
282 {
283 "type": "assert_trap",
284 "line": 46,
285 "action": {
286 "type": "invoke",
287 "field": "set-externref",
288 "args": [
289 {
290 "type": "i32",
291 "value": "2"
292 },
293 {
294 "type": "externref",
295 "value": "0"
296 }
297 ]
298 },
299 "text": "out of bounds table access"
300 },
301 {
302 "type": "assert_trap",
303 "line": 47,
304 "action": {
305 "type": "invoke",
306 "field": "set-funcref-from",
307 "args": [
308 {
309 "type": "i32",
310 "value": "3"
311 },
312 {
313 "type": "i32",
314 "value": "1"
315 }
316 ]
317 },
318 "text": "out of bounds table access"
319 },
320 {
321 "type": "assert_trap",
322 "line": 48,
323 "action": {
324 "type": "invoke",
325 "field": "set-externref",
326 "args": [
327 {
328 "type": "i32",
329 "value": "-1"
330 },
331 {
332 "type": "externref",
333 "value": "0"
334 }
335 ]
336 },
337 "text": "out of bounds table access"
338 },
339 {
340 "type": "assert_trap",
341 "line": 49,
342 "action": {
343 "type": "invoke",
344 "field": "set-funcref-from",
345 "args": [
346 {
347 "type": "i32",
348 "value": "-1"
349 },
350 {
351 "type": "i32",
352 "value": "1"
353 }
354 ]
355 },
356 "text": "out of bounds table access"
357 },
358 {
359 "type": "assert_invalid",
360 "line": 55,
361 "filename": "table_set.1.wasm",
362 "module_type": "binary",
363 "text": "type mismatch"
364 },
365 {
366 "type": "assert_invalid",
367 "line": 64,
368 "filename": "table_set.2.wasm",
369 "module_type": "binary",
370 "text": "type mismatch"
371 },
372 {
373 "type": "assert_invalid",
374 "line": 73,
375 "filename": "table_set.3.wasm",
376 "module_type": "binary",
377 "text": "type mismatch"
378 },
379 {
380 "type": "assert_invalid",
381 "line": 82,
382 "filename": "table_set.4.wasm",
383 "module_type": "binary",
384 "text": "type mismatch"
385 },
386 {
387 "type": "assert_invalid",
388 "line": 91,
389 "filename": "table_set.5.wasm",
390 "module_type": "binary",
391 "text": "type mismatch"
392 },
393 {
394 "type": "assert_invalid",
395 "line": 101,
396 "filename": "table_set.6.wasm",
397 "module_type": "binary",
398 "text": "type mismatch"
399 },
400 {
401 "type": "assert_invalid",
402 "line": 112,
403 "filename": "table_set.7.wasm",
404 "module_type": "binary",
405 "text": "type mismatch"
406 }
407 ]
408 }