Skip to content

Commit

Permalink
Unreviewed, reverting 269819@main.
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=263781

It didn't fix the Speedometer regression

Reverted changeset:

"Unreviewed partial revert of 269630@main to address Speedometer regression"
https://bugs.webkit.org/show_bug.cgi?id=263730
https://commits.webkit.org/269819@main

Canonical link: https://commits.webkit.org/269849@main
  • Loading branch information
webkit-commit-queue authored and cdumez committed Oct 27, 2023
1 parent a55f0e9 commit 0c8bb7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WTF/wtf/text/StringView.h
Original file line number Diff line number Diff line change
Expand Up @@ -561,15 +561,15 @@ inline StringView StringView::substring(unsigned start, unsigned length) const

inline UChar StringView::characterAt(unsigned index) const
{
ASSERT_WITH_SECURITY_IMPLICATION(index < length());
RELEASE_ASSERT(index < length());
if (is8Bit())
return characters8()[index];
return characters16()[index];
}

inline UChar StringView::unsafeCharacterAt(unsigned index) const
{
ASSERT_WITH_SECURITY_IMPLICATION(index < length());
ASSERT(index < length());
if (is8Bit())
return characters8()[index];
return characters16()[index];
Expand Down

0 comments on commit 0c8bb7b

Please sign in to comment.