Debian Codegraph @

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

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/throw.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 3,
7 "filename": "throw.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 38,
13 "action": {
14 "type": "invoke",
15 "field": "throw-if",
16 "args": [
17 {
18 "type": "i32",
19 "value": "0"
20 }
21 ]
22 },
23 "expected": [
24 {
25 "type": "i32",
26 "value": "0"
27 }
28 ]
29 },
30 {
31 "type": "assert_exception",
32 "line": 39,
33 "action": {
34 "type": "invoke",
35 "field": "throw-if",
36 "args": [
37 {
38 "type": "i32",
39 "value": "10"
40 }
41 ]
42 }
43 },
44 {
45 "type": "assert_exception",
46 "line": 40,
47 "action": {
48 "type": "invoke",
49 "field": "throw-if",
50 "args": [
51 {
52 "type": "i32",
53 "value": "-1"
54 }
55 ]
56 }
57 },
58 {
59 "type": "assert_exception",
60 "line": 42,
61 "action": {
62 "type": "invoke",
63 "field": "throw-param-f32",
64 "args": [
65 {
66 "type": "f32",
67 "value": "1084227584"
68 }
69 ]
70 }
71 },
72 {
73 "type": "assert_exception",
74 "line": 43,
75 "action": {
76 "type": "invoke",
77 "field": "throw-param-i64",
78 "args": [
79 {
80 "type": "i64",
81 "value": "5"
82 }
83 ]
84 }
85 },
86 {
87 "type": "assert_exception",
88 "line": 44,
89 "action": {
90 "type": "invoke",
91 "field": "throw-param-f64",
92 "args": [
93 {
94 "type": "f64",
95 "value": "4617315517961601024"
96 }
97 ]
98 }
99 },
100 {
101 "type": "assert_exception",
102 "line": 46,
103 "action": {
104 "type": "invoke",
105 "field": "throw-polymorphic",
106 "args": []
107 }
108 },
109 {
110 "type": "assert_exception",
111 "line": 47,
112 "action": {
113 "type": "invoke",
114 "field": "throw-polymorphic-block",
115 "args": []
116 }
117 },
118 {
119 "type": "assert_return",
120 "line": 49,
121 "action": {
122 "type": "invoke",
123 "field": "test-throw-1-2",
124 "args": []
125 },
126 "expected": []
127 },
128 {
129 "type": "assert_invalid",
130 "line": 51,
131 "filename": "throw.1.wasm",
132 "module_type": "binary",
133 "text": "unknown tag 0"
134 },
135 {
136 "type": "assert_invalid",
137 "line": 52,
138 "filename": "throw.2.wasm",
139 "module_type": "binary",
140 "text": "type mismatch: instruction requires [i32] but stack has []"
141 },
142 {
143 "type": "assert_invalid",
144 "line": 54,
145 "filename": "throw.3.wasm",
146 "module_type": "binary",
147 "text": "type mismatch: instruction requires [i32] but stack has [i64]"
148 }
149 ]
150 }