mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Sticky regular expressions were still using the generic forward-search paths inside LibRegex and only enforcing the lastIndex check back in LibJS after a match had already been found. That made tokenizer-style sticky patterns spend most of their time scanning for later matches that would be thrown away. Route sticky exec() and test() through an anchored VM entry point that runs exactly once at the requested start position while keeping the existing literal-hint pruning. Add focused test-js coverage for sticky literals, alternations, classes, quantifiers, and WebIDL-style token patterns.