LibRegex: Don't ignore references that weren't bound in checked blocks

Fixes #2281.
This commit is contained in:
Ali Mohammad Pur 2024-11-12 09:18:38 +01:00 committed by Jelle Raaijmakers
commit dabd60180f
Notes: github-actions[bot] 2024-11-12 09:38:57 +00:00
2 changed files with 2 additions and 17 deletions

View file

@ -708,6 +708,7 @@ TEST_CASE(ECMA262_match)
{ "^\\?((&?category=[0-9]+)?(&?shippable=1)?(&?ad_type=demand)?(&?page=[0-9]+)?(&?locations=(r|d)_[0-9]+)?)+$"sv,
"?category=54&shippable=1&baby_age=p,0,1,3"sv, false }, // ladybird#968, ?+ should not loop forever.
{ "([^\\s]+):\\s*([^;]+);"sv, "font-family: 'Inter';"sv, true }, // optimizer bug, blindly accepting inverted char classes [^x] as atomic rewrite opportunities.
{ "(a)(?=a*\\1)"sv, "aaaa"sv, true, global_multiline.value() }, // Optimizer bug, ignoring references that weren't bound in the current or past block, ladybird#2281
};
// clang-format on