mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Bug 1697076 - Drop assertion from mozilla::unicode::GetNaked. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D107942
This commit is contained in:
parent
0f7e5abc88
commit
b24e5f0f51
@ -309,7 +309,6 @@ uint32_t CountGraphemeClusters(const char16_t* aText, uint32_t aLength) {
|
||||
}
|
||||
|
||||
uint32_t GetNaked(uint32_t aCh) {
|
||||
MOZ_ASSERT(!IsCombiningDiacritic(aCh), "This character needs to be skipped");
|
||||
uint32_t index = aCh >> 8;
|
||||
if (index >= MOZ_ARRAY_LENGTH(BASE_CHAR_MAPPING_BLOCK_INDEX)) {
|
||||
return aCh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user