mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Fix parsing of invalid numeric literals
i.e. "1e" "0x" "0b" "0o" used to be parsed as valid literals. They now produce invalid tokens. Fixes #3716
This commit is contained in:
parent
3efd4c105f
commit
2c888b3c6e
Notes:
sideshowbarker
2024-07-19 01:51:31 +09:00
Author: https://github.com/sunverwerth
Commit: 2c888b3c6e
Pull-request: https://github.com/SerenityOS/serenity/pull/3789
Issue: https://github.com/SerenityOS/serenity/issues/3716
3 changed files with 63 additions and 14 deletions
|
@ -42,7 +42,10 @@ public:
|
|||
|
||||
private:
|
||||
void consume();
|
||||
void consume_exponent();
|
||||
bool consume_exponent();
|
||||
bool consume_octal_number();
|
||||
bool consume_hexadecimal_number();
|
||||
bool consume_binary_number();
|
||||
bool is_eof() const;
|
||||
bool is_identifier_start() const;
|
||||
bool is_identifier_middle() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue