mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
committed by
Andreas Kling
parent
92c073a9d1
commit
ee1d9217aa
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user