Files
ladybird/Libraries/LibJS/Lexer.cpp
Andreas Kling ad0bea3069 LibJS: Always consume exponent in decimal numeric literals
The short-circuit evaluation in `is_invalid || !consume_exponent()`
skipped the consume_exponent() call when is_invalid was already true.
This meant that for inputs like `1._1e2`, the exponent part would not
be consumed and would instead be lexed as separate tokens.
2026-02-24 09:39:42 +01:00

36 KiB