Closed chenhengqi closed 3 years ago
This implementation here seems to be wrong ?
https://github.com/second-state/WasmEdge-go/blob/87a58325196d611e296780f43de2abd8b0804d41/wasmedge/value.go#L91-L93
https://github.com/second-state/WasmEdge-go/blob/87a58325196d611e296780f43de2abd8b0804d41/wasmedge/hostfunc.go#L42-L44
The last element is reused, but not pop out from the slice.
Thanks for reporting.
@q82419 could you please check this?
Thanks for reporting. Will be fixed in PR.
This implementation here seems to be wrong ?
https://github.com/second-state/WasmEdge-go/blob/87a58325196d611e296780f43de2abd8b0804d41/wasmedge/value.go#L91-L93
https://github.com/second-state/WasmEdge-go/blob/87a58325196d611e296780f43de2abd8b0804d41/wasmedge/hostfunc.go#L42-L44
The last element is reused, but not pop out from the slice.