oxc/crates/oxc_parser
overlookmotel d0d708295b
refactor(parser): consume chars when parsing surrogate pair escape (#2243)
This fixes a mistake I made in #2237.

I was confused by the `!(...)` wrapping of the preceding `if` test and
missed that there are definitely 2 chars to consume, so can use
`consume_char()` instead of `next_char()`. This makes no difference to
behavior, but it follows the convention to always prefer
`consume_char()` when possible.

I've also refactored the code which confused me, so hopefully others
won't be confused too!
2024-02-01 11:34:26 +08:00
..
examples chore(clippy): enable undocumented_unsafe_blocks 2023-10-16 15:18:14 +08:00
src refactor(parser): consume chars when parsing surrogate pair escape (#2243) 2024-02-01 11:34:26 +08:00
Cargo.toml chore(deps): update cargo (#2138) 2024-01-23 14:48:04 +08:00