Closed bjorn3 closed 2 years ago
Can you please paste details here as well? I have no idea what your input is to generate this error.
I used https://github.com/alexcrichton/WASI/tree/abi-next/phases/old/snapshot_0/witx as input with the fd
resource renamed to fd_
to prevent an error and the typename module inlined into the wasi_unstable module as the website only accepts a single file.
A minimal reproducing error would be:
(module $wasi_unstable
(typename $ciovec
(record
(field $buf (@witx const_pointer u8))
(field $buf_len u32)
)
)
(typename $ciovec_array (list $ciovec))
(@interface func (export "sock_send")
(param $si_data $ciovec_array)
(result $error (expected (error u16)))
)
)
Support for *.witx
files has been removed so I'm going to close this.
After renaming the
$fd
resource to avoid an error trying to generate javascript for WASI panics with:Originally posted by @bjorn3 in https://github.com/bytecodealliance/witx-bindgen/issues/67#issuecomment-916160355