Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/table_get.wast.json

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