diff --git a/js/src/builtin/intl/LanguageTagGenerated.cpp b/js/src/builtin/intl/LanguageTagGenerated.cpp index b322f9ec3d05..b018889d652b 100644 --- a/js/src/builtin/intl/LanguageTagGenerated.cpp +++ b/js/src/builtin/intl/LanguageTagGenerated.cpp @@ -447,8 +447,8 @@ void js::intl::LanguageTag::performComplexRegionMappings() { } else if (language().equalTo("kaa") || language().equalTo("sog") || - (language().equalTo("und") && script().equalTo("Sogd")) || (language().equalTo("und") && script().equalTo("Chrs")) || + (language().equalTo("und") && script().equalTo("Sogd")) || (language().equalTo("und") && script().equalTo("Sogo")) || language().equalTo("uz") || language().equalTo("xco")) { @@ -483,9 +483,9 @@ void js::intl::LanguageTag::performComplexRegionMappings() { (language().equalTo("ku") && script().equalTo("Arab")) || language().equalTo("mis") || language().equalTo("syr") || - (language().equalTo("und") && script().equalTo("Xsux")) || (language().equalTo("und") && script().equalTo("Hatr")) || - (language().equalTo("und") && script().equalTo("Syrc"))) { + (language().equalTo("und") && script().equalTo("Syrc")) || + (language().equalTo("und") && script().equalTo("Xsux"))) { setRegion("IQ"); } else { @@ -566,8 +566,8 @@ void js::intl::LanguageTag::performComplexRegionMappings() { } else if (language().equalTo("kaa") || language().equalTo("sog") || - (language().equalTo("und") && script().equalTo("Sogd")) || (language().equalTo("und") && script().equalTo("Chrs")) || + (language().equalTo("und") && script().equalTo("Sogd")) || (language().equalTo("und") && script().equalTo("Sogo")) || language().equalTo("uz") || language().equalTo("xco")) { diff --git a/js/src/builtin/intl/make_intl_data.py b/js/src/builtin/intl/make_intl_data.py index a4f87750ec5a..98923325061b 100755 --- a/js/src/builtin/intl/make_intl_data.py +++ b/js/src/builtin/intl/make_intl_data.py @@ -319,12 +319,11 @@ void js::intl::LanguageTag::performComplexRegionMappings() { first_case = True for replacement_region in replacement_regions: - replacement_language_script = sorted(((language, script) - for (language, script, region) in ( - non_default_replacements - ) - if region == replacement_region), - key=itemgetter(0)) + replacement_language_script = sorted((language, script) + for (language, script, region) in ( + non_default_replacements + ) + if region == replacement_region) if_kind = u"if" if first_case else u"else if" first_case = False