10$: JS string decoding routine #1159
Labels
false negative
Bug: quick-lint-js accepts syntatically-invalid code
for hire
Get paid for working on this task: https://quick-lint-js.com/hiring.html
Write a routine which decodes escape sequences in string literal tokens.
Caveats:
'
or"
(due to error recovery)No diagnostics should be reported by the routine. (Diagnostics should have been reported already when lexing the string literal.)
Memory should be allocated in a user-provided Memory_Resource, probably using Vector.
Decoded string should be (possibly-invalid) UTF-8.
The text was updated successfully, but these errors were encountered: