mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:45:07 +00:00
LibRegex: Use match_ordinary_characters() in ECMA262Parser::parse_atom()
Otherwise we would only match TokenType::Char, making all of these invalid: - /foo,bar/ - /foo\/bar/ - /foo=bar/ - /foo-bar/ - /foo:bar/ Fixes #4243.
This commit is contained in:
parent
1279d2256c
commit
eea7cabdbc
3 changed files with 16 additions and 15 deletions
|
@ -90,6 +90,7 @@ protected:
|
|||
|
||||
ALWAYS_INLINE bool match(TokenType type) const;
|
||||
ALWAYS_INLINE bool match(char ch) const;
|
||||
ALWAYS_INLINE bool match_ordinary_characters();
|
||||
ALWAYS_INLINE Token consume();
|
||||
ALWAYS_INLINE Token consume(TokenType type, Error error);
|
||||
ALWAYS_INLINE bool consume(const String&);
|
||||
|
@ -145,7 +146,6 @@ public:
|
|||
|
||||
private:
|
||||
ALWAYS_INLINE bool match_repetition_symbol();
|
||||
ALWAYS_INLINE bool match_ordinary_characters();
|
||||
|
||||
bool parse_internal(ByteCode&, size_t&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue