mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
parent
92c073a9d1
commit
ee1d9217aa
2 changed files with 6 additions and 0 deletions
|
@ -741,6 +741,11 @@ bool ECMA262Parser::parse_assertion(ByteCode& stack, [[maybe_unused]] size_t& ma
|
|||
if (!try_skip("(?"))
|
||||
return false;
|
||||
|
||||
if (done()) {
|
||||
set_error(Error::InvalidCaptureGroup);
|
||||
return false;
|
||||
}
|
||||
|
||||
ByteCode assertion_stack;
|
||||
size_t length_dummy = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue