mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
parent
91bf3dc7fe
commit
e0ac85288e
2 changed files with 5 additions and 6 deletions
|
@ -954,12 +954,10 @@ bool ECMA262Parser::parse_quantifier(ByteCode& stack, size_t& match_length_minim
|
|||
if (match(TokenType::Comma)) {
|
||||
consume();
|
||||
auto high_bound = read_digits();
|
||||
if (!high_bound.has_value()) {
|
||||
set_error(Error::InvalidBraceContent);
|
||||
return false;
|
||||
}
|
||||
|
||||
repeat_max = high_bound.value();
|
||||
if (high_bound.has_value())
|
||||
repeat_max = high_bound.value();
|
||||
} else {
|
||||
repeat_max = repeat_min;
|
||||
}
|
||||
|
||||
if (!match(TokenType::RightCurly)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue