Files
ladybird/Libraries/LibJS/Token.cpp
Andreas Kling f9dfa4ef36 LibJS: Parse overflowing integer literals correctly
When hex, octal, or binary integer literals overflow u64, we used to
fall back to UINT64_MAX. This produced incorrect results for any value
larger than 2^64.

Fix this by accumulating the value as a double digit-by-digit when
the u64 parse fails.
2026-02-19 02:45:37 +01:00

10 KiB