wasmoon
wasmoon copied to clipboard
Pass strings including \0 through interop
Hi,
I am trying to pass \0 values through the interop layer e.g. I want to call a javascript method with an string argument. The string should act as a byte buffer (which perfectly works in Lua itself). However, when I pass it through the interop layer, the string is chopped at the first \0. Any sugesstions how to solve this? Javascript strings can also contain \0 in between.
Thanks
Hey! Do you have a minimal repro for this?