{"type":"module","line":1,"filename":"table_get.0.wasm"}
loaded
{"type":"action","line":24,"action":{"type":"invoke","field":"init","args":[{"type":"externref","value":"1"}]}}
action done
{"type":"assert_return","line":26,"action":{"type":"invoke","field":"get-externref","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"externref","value":"null"}]}
(assert_return (invoke "get-externref" (i32.const 0)) (ref.null extern))
ok, result
{"type":"assert_return","line":27,"action":{"type":"invoke","field":"get-externref","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"externref","value":"1"}]}
(assert_return (invoke "get-externref" (i32.const 1)) (ref.extern 1))
ok, result
{"type":"assert_return","line":29,"action":{"type":"invoke","field":"get-funcref","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"funcref","value":"null"}]}
(assert_return (invoke "get-funcref" (i32.const 0)) (ref.null func))
ok, result
{"type":"assert_return","line":30,"action":{"type":"invoke","field":"is_null-funcref","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"0"}]}
(assert_return (invoke "is_null-funcref" (i32.const 1)) (i32.const 0))
ok, result
{"type":"assert_return","line":31,"action":{"type":"invoke","field":"is_null-funcref","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"0"}]}
(assert_return (invoke "is_null-funcref" (i32.const 2)) (i32.const 0))
ok, result
{"type":"assert_trap","line":33,"text":"out of bounds table access","action":{"type":"invoke","field":"get-externref","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"externref"}]}
(assert_trap (invoke "get-externref" (i32.const 2)) "out of bounds table access")
ok, got error: zcl_wasm_memory: table_get, out of bounds
{"type":"assert_trap","line":34,"text":"out of bounds table access","action":{"type":"invoke","field":"get-funcref","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"funcref"}]}
(assert_trap (invoke "get-funcref" (i32.const 3)) "out of bounds table access")
ok, got error: zcl_wasm_memory: table_get, out of bounds
{"type":"assert_trap","line":35,"text":"out of bounds table access","action":{"type":"invoke","field":"get-externref","args":[{"type":"i32","value":"4294967295"}]},"expected":[{"type":"externref"}]}
(assert_trap (invoke "get-externref" (i32.const -1)) "out of bounds table access")
ok, got error: zcl_wasm_table_get: negative index
{"type":"assert_trap","line":36,"text":"out of bounds table access","action":{"type":"invoke","field":"get-funcref","args":[{"type":"i32","value":"4294967295"}]},"expected":[{"type":"funcref"}]}
(assert_trap (invoke "get-funcref" (i32.const -1)) "out of bounds table access")
ok, got error: zcl_wasm_table_get: negative index
{"type":"assert_invalid","line":42,"filename":"table_get.1.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":51,"filename":"table_get.2.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":61,"filename":"table_get.3.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":70,"filename":"table_get.4.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":80,"filename":"table_get.5.wasm","text":"type mismatch"}
expected error
Generated at 2024-09-05T14:40:40