Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Require string-style identifiers to be UTF-8 (#6941) | Thomas Lively | 2024-09-16 | 1 | -0/+8 |
In the WebAssembly text format, strings can generally be arbitrary bytes, but identifiers must be valid UTF-8. Check for UTF-8 validity when parsing string-style identifiers in the lexer. Update StringLowering to generate valid UTF-8 global names even for strings that may not be valid UTF-8 and test that text round tripping works correctly after StringLowering. Fixes #6937. |