NEW 255529
start variable should be checked before being passed to RegularExpression.match()
https://bugs.webkit.org/show_bug.cgi?id=255529
Summary start variable should be checked before being passed to RegularExpression.mat...
Seija K.
Reported 2023-04-17 09:42:20 PDT
The first iteration of regex.match is guaranteed to have start be less than content.length(). This is because of the isEmpty check at the beginning of the function, which means that the only time start should be checked is when it changes. This also saves us a function call when start is at the end of the content.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-04-24 09:43:19 PDT
Ahmad Saleem
Comment 2 2024-06-04 12:46:44 PDT
Note You need to log in before you can comment on or make changes to this bug.