diff options
author | Thomas Lively <tlively@google.com> | 2024-08-21 15:05:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 15:05:22 -0700 |
commit | 692e55c14bd3055b1aae49681bb8e62c757c678d (patch) | |
tree | 1b25a10166b1cd2dea159f3f59e02dde361a7636 /test/lit/help/wasm-merge.test | |
parent | 99db0d9c7c33bcea7b7730bb5684f41176146f83 (diff) | |
download | binaryen-692e55c14bd3055b1aae49681bb8e62c757c678d.tar.gz binaryen-692e55c14bd3055b1aae49681bb8e62c757c678d.tar.bz2 binaryen-692e55c14bd3055b1aae49681bb8e62c757c678d.zip |
Add a string lowering mode disallowing non-UTF-8 strings (#6861)
The best way to lower strings is via the "magic imports" API that uses
the names of imported string globals as their values. This approach only
works for valid UTF-8 strings, though. The existing
string-lowering-magic-imports pass falls back to putting non-UTF-8
strings in a JSON custom section, but this requires the runtime to
support that custom section for correctness. To help catch errors early
when runtimes do not support the strings custom section, add a new pass
that uses magic imports and raises an error if there are any invalid
strings.
Diffstat (limited to 'test/lit/help/wasm-merge.test')
0 files changed, 0 insertions, 0 deletions