summaryrefslogtreecommitdiff
path: root/test/lit/parse-bad-identifier.wast
Commit message (Collapse)AuthorAgeFilesLines
* Require string-style identifiers to be UTF-8 (#6941)Thomas Lively2024-09-161-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.