Closed jasikpark closed 1 week ago
It is because RegExp literals need special lexing. The RegExp lexing state is set when the previous token is an expression prefix (and the next character is == '/'
).
TSXToken::BitwiseAnd
is missing from this list:
(this is_expression_prefix
is also how JSX lexing works vs generic type arguments and inequalities)
will fix in the ongoing #158
I wonder if there is a way to reuse this logic?
Also I guess you are you finding these issues by running the fuzzing locally? Is it finding these quick?
Yep, I'm running it locally on an M1 Max macbook pro with lots of ram, takes only a minute or so of running to find these
This specific issue fixed in https://github.com/kaleidawave/ezno/pull/158
Sorry for the lack of context for the moment, I just want to get a WIP issue up:
I'll try to see what's causing the failing parsing or printing in a bit