Bug 1697076 - Drop assertion from mozilla::unicode::GetNaked. r=jfkthame

Differential Revision: https://phabricator.services.mozilla.com/D107942
This commit is contained in:
Alex Henrie 2021-03-11 09:42:18 +00:00
parent 0f7e5abc88
commit b24e5f0f51

View File

@ -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;