// Copyright 2020 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Test in sr-ME locale, we consistently use Latin for both month and// TimeZoneName.letsomeCyrillicRE=/\p{Script=Cyrillic}/u;letsomeLatinRE=/\p{Script=Latin}/u;letallLatinRE=/[\s\d\.\p{Script=Latin}]+/u;letallCyrillicRE=/^[\s\d\.\p{Script=Cyrillic}]+$/u;letd=newDate();letsrMETimeZone=newIntl.DateTimeFormat("sr-ME",{timeZoneName:"long",timeZone:"America/Los_Angeles"});letsrMEMonth=newIntl.DateTimeFormat("sr-ME",{month:"long"});letsrTimeZone=newIntl.DateTimeFormat("sr",{timeZoneName:"long",timeZone:"America/Los_Angeles"});letsrMonth=newIntl.DateTimeFormat("sr",{month:"long"});letsrMETimeZoneString=srMETimeZone.format(d);letsrMEMonthString=srMEMonth.format(d);letsrTimeZoneString=srTimeZone.format(d);letsrMonthString=srMonth.format(d);// sr-ME should have both in LatinassertTrue(allLatinRE.test(srMETimeZoneString),srMETimeZoneString);assertTrue(allLatinRE.test(srMEMonthString),srMEMonthString);assertFalse(someCyrillicRE.test(srMETimeZoneString),srMETimeZoneString);assertFalse(someCyrillicRE.test(srMEMonthString),srMEMonthString);// sr should have both in CyrillicassertTrue(allCyrillicRE.test(srTimeZoneString),srTimeZoneString);assertTrue(allCyrillicRE.test(srMonthString),srMonthString);assertFalse(someLatinRE.test(srTimeZoneString),srTimeZoneString);assertFalse(someLatinRE.test(srMonthString),srMonthString);