Debian Codegraph @

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

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/ref_as_non_null.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "ref_as_non_null.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_trap",
12 "line": 25,
13 "action": {
14 "type": "invoke",
15 "field": "unreachable",
16 "args": []
17 },
18 "text": "unreachable"
19 },
20 {
21 "type": "assert_trap",
22 "line": 27,
23 "action": {
24 "type": "invoke",
25 "field": "nullable-null",
26 "args": []
27 },
28 "text": "null reference"
29 },
30 {
31 "type": "assert_return",
32 "line": 28,
33 "action": {
34 "type": "invoke",
35 "field": "nonnullable-f",
36 "args": []
37 },
38 "expected": [
39 {
40 "type": "i32",
41 "value": "7"
42 }
43 ]
44 },
45 {
46 "type": "assert_return",
47 "line": 29,
48 "action": {
49 "type": "invoke",
50 "field": "nullable-f",
51 "args": []
52 },
53 "expected": [
54 {
55 "type": "i32",
56 "value": "7"
57 }
58 ]
59 },
60 {
61 "type": "assert_invalid",
62 "line": 32,
63 "filename": "ref_as_non_null.1.wasm",
64 "module_type": "binary",
65 "text": "type mismatch"
66 },
67 {
68 "type": "module",
69 "line": 41,
70 "filename": "ref_as_non_null.2.wasm",
71 "module_type": "binary"
72 }
73 ]
74 }