Debian Codegraph @

tests/snapshots/testsuite/table_get.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/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": 24,
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": 26,
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": 27,
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": 29,
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": 30,
87 "action": {
88 "type": "invoke",
89 "field": "is_null-funcref",
90 "args": [
91 {
92 "type": "i32",
93 "value": "1"
94 }
95 ]
96 },
97 "expected": [
98 {
99 "type": "i32",
100 "value": "0"
101 }
102 ]
103 },
104 {
105 "type": "assert_return",
106 "line": 31,
107 "action": {
108 "type": "invoke",
109 "field": "is_null-funcref",
110 "args": [
111 {
112 "type": "i32",
113 "value": "2"
114 }
115 ]
116 },
117 "expected": [
118 {
119 "type": "i32",
120 "value": "0"
121 }
122 ]
123 },
124 {
125 "type": "assert_trap",
126 "line": 33,
127 "action": {
128 "type": "invoke",
129 "field": "get-externref",
130 "args": [
131 {
132 "type": "i32",
133 "value": "2"
134 }
135 ]
136 },
137 "text": "out of bounds table access"
138 },
139 {
140 "type": "assert_trap",
141 "line": 34,
142 "action": {
143 "type": "invoke",
144 "field": "get-funcref",
145 "args": [
146 {
147 "type": "i32",
148 "value": "3"
149 }
150 ]
151 },
152 "text": "out of bounds table access"
153 },
154 {
155 "type": "assert_trap",
156 "line": 35,
157 "action": {
158 "type": "invoke",
159 "field": "get-externref",
160 "args": [
161 {
162 "type": "i32",
163 "value": "-1"
164 }
165 ]
166 },
167 "text": "out of bounds table access"
168 },
169 {
170 "type": "assert_trap",
171 "line": 36,
172 "action": {
173 "type": "invoke",
174 "field": "get-funcref",
175 "args": [
176 {
177 "type": "i32",
178 "value": "-1"
179 }
180 ]
181 },
182 "text": "out of bounds table access"
183 },
184 {
185 "type": "assert_invalid",
186 "line": 42,
187 "filename": "table_get.1.wasm",
188 "module_type": "binary",
189 "text": "type mismatch"
190 },
191 {
192 "type": "assert_invalid",
193 "line": 51,
194 "filename": "table_get.2.wasm",
195 "module_type": "binary",
196 "text": "type mismatch"
197 },
198 {
199 "type": "assert_invalid",
200 "line": 61,
201 "filename": "table_get.3.wasm",
202 "module_type": "binary",
203 "text": "type mismatch"
204 },
205 {
206 "type": "assert_invalid",
207 "line": 70,
208 "filename": "table_get.4.wasm",
209 "module_type": "binary",
210 "text": "type mismatch"
211 },
212 {
213 "type": "assert_invalid",
214 "line": 80,
215 "filename": "table_get.5.wasm",
216 "module_type": "binary",
217 "text": "type mismatch"
218 }
219 ]
220 }