Closed ko1 closed 2 years ago
https://github.com/whitequark/parser#invalid-characters-inside-comments-and-literals "including the expanded escape sequences" matches this case?
Yes, this is intentional. Accepting this code means returning strings with invalid encoding to downstream code.
This change was introduced in https://github.com/whitequark/parser/commit/95401a20e8f4532e32f6361da3918ac8e4bd18c7, it's been reported (and rejected) multiple times, if you really want to handle these invalid strings the workaround is quite simple.
Thank you so much for very quick response!
Is it intentional?