binaryen
binaryen copied to clipboard
[Strings] Linear memory string operations should emit a memory index
For now this index is always 0, but we must emit it.
Spec: https://github.com/WebAssembly/stringref/blob/main/proposals/stringref/Overview.md#binary-encoding
Also clean up the wat test a little - we don't have validation yet, but we should not validate without a memory in that file.