diff --git a/crates/oxc_parser/src/lexer/mod.rs b/crates/oxc_parser/src/lexer/mod.rs index b275d657b..ec6d50fea 100644 --- a/crates/oxc_parser/src/lexer/mod.rs +++ b/crates/oxc_parser/src/lexer/mod.rs @@ -1292,7 +1292,7 @@ unsafe fn handle_byte(byte: u8, lexer: &mut Lexer) -> Kind { BYTE_HANDLERS[byte as usize](lexer) } -type ByteHandler = fn(&mut Lexer<'_>) -> Kind; +type ByteHandler = unsafe fn(&mut Lexer<'_>) -> Kind; /// Lookup table mapping any incoming byte to a handler function defined below. ///