mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibRegex: Remove orphaned save points in nested LookAhead
This commit is contained in:
parent
80d7350ee5
commit
f2678bfcb8
Notes:
github-actions[bot]
2025-03-14 08:42:39 +00:00
Author: https://github.com/mikiubo
Commit: f2678bfcb8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3915
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/gmta
3 changed files with 23 additions and 0 deletions
|
@ -217,6 +217,12 @@ ALWAYS_INLINE ExecutionResult OpCode_FailForks::execute(MatchInput const& input,
|
|||
input.fail_counter += state.forks_since_last_save;
|
||||
return ExecutionResult::Failed_ExecuteLowPrioForks;
|
||||
}
|
||||
ALWAYS_INLINE ExecutionResult OpCode_PopSaved::execute(MatchInput const& input, MatchState&) const
|
||||
{
|
||||
input.saved_positions.take_last();
|
||||
input.saved_code_unit_positions.take_last();
|
||||
return ExecutionResult::Failed_ExecuteLowPrioForks;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE ExecutionResult OpCode_Jump::execute(MatchInput const&, MatchState& state) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue