[ruby/prism] Fix parser translator during string escaping with invalid utf-8
Instead, prefer scan_byte over get_byte since that already returns the byte as an integer, sidestepping conversion issues.
scan_byte
get_byte
Fixes https://github.com/ruby/prism/issues/3582
https://github.com/ruby/prism/commit/7f3008b2b5
[ruby/prism] Fix parser translator during string escaping with invalid utf-8
Instead, prefer
scan_byte
overget_byte
since that already returns the byte as an integer, sidestepping conversion issues.Fixes https://github.com/ruby/prism/issues/3582
https://github.com/ruby/prism/commit/7f3008b2b5