Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f7ca1591531fe371b60608585b756fc51081a5c3
https://github.com/WebKit/WebKit/commit/f7ca1591531fe371b60608585b756fc51081a5c3
Author: David Kilzer <[email protected]>
Date: 2026-01-10 (Sat, 10 Jan 2026)
Changed paths:
M Source/JavaScriptCore/yarr/YarrParser.h
Log Message:
-----------
JSC::Yarr::Parser should use std::span<const CharType> parameter
<https://bugs.webkit.org/show_bug.cgi?id=305244>
<rdar://167884353>
Reviewed by Geoffrey Garen.
No test because no change in behavior.
* Source/JavaScriptCore/yarr/YarrParser.h:
(JSC::Yarr::Parser::Parser):
- Change `pattern` argument from WTF::StringView to
std::span<const CharType> for consistency with the Parser class. This
has the additional effect of fixing a -Wdangling-field warning caused
by calling StringView.span<CharType>().data().
(JSC::Yarr::parse):
- Call StringView.span8() or span16() depending on the CharType used for
JSC::Yarr::Parser.
Canonical link: https://commits.webkit.org/305416@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications