tests/snapshots/cli/function-references/table-nonnull.wast.json
raw| 1 | { |
| 2 | "source_filename": "tests/cli/function-references/table-nonnull.wast", |
| 3 | "commands": [ |
| 4 | { |
| 5 | "type": "module", |
| 6 | "line": 5, |
| 7 | "filename": "table-nonnull.0.wasm", |
| 8 | "module_type": "binary" |
| 9 | }, |
| 10 | { |
| 11 | "type": "assert_return", |
| 12 | "line": 19, |
| 13 | "action": { |
| 14 | "type": "invoke", |
| 15 | "field": "get1", |
| 16 | "args": [] |
| 17 | }, |
| 18 | "expected": [ |
| 19 | { |
| 20 | "type": "refnull" |
| 21 | } |
| 22 | ] |
| 23 | }, |
| 24 | { |
| 25 | "type": "assert_return", |
| 26 | "line": 20, |
| 27 | "action": { |
| 28 | "type": "invoke", |
| 29 | "field": "get2", |
| 30 | "args": [] |
| 31 | }, |
| 32 | "expected": [ |
| 33 | { |
| 34 | "type": "funcref" |
| 35 | } |
| 36 | ] |
| 37 | }, |
| 38 | { |
| 39 | "type": "assert_return", |
| 40 | "line": 21, |
| 41 | "action": { |
| 42 | "type": "invoke", |
| 43 | "field": "get3", |
| 44 | "args": [] |
| 45 | }, |
| 46 | "expected": [ |
| 47 | { |
| 48 | "type": "funcref" |
| 49 | } |
| 50 | ] |
| 51 | } |
| 52 | ] |
| 53 | } |