mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibRegex: Remove orphaned save points in nested LookAhead
This commit is contained in:
parent
a6935299eb
commit
c85df78c4c
Notes:
github-actions[bot]
2025-03-17 15:12:04 +00:00
Author: https://github.com/mikiubo
Commit: c85df78c4c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3949
Reviewed-by: https://github.com/alimpfard
3 changed files with 27 additions and 0 deletions
|
@ -738,6 +738,9 @@ TEST_CASE(ECMA262_match)
|
|||
// Optimizer bug, ignoring an enabled trailing 'invert' when comparing blocks, ladybird#3421.
|
||||
{ "[^]*[^]"sv, "i"sv, true },
|
||||
{ "xx|...|...."sv, "cd"sv, false },
|
||||
// Tests nested lookahead with alternation - verifies proper save/restore stack cleanup
|
||||
{ "a(?=.(?=c)|b)b"sv, "ab"sv, true },
|
||||
{ "(?=)(?=\\d)"sv, "smart"sv, false },
|
||||
};
|
||||
|
||||
for (auto& test : tests) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue