Lines Matching defs:locales
50 // 9.2.1 CanonicalizeLocaleList ( locales )
51 JSHandle<TaggedArray> LocaleHelper::CanonicalizeLocaleList(JSThread *thread, const JSHandle<JSTaggedValue> &locales)
54 // 1. If locales is undefined, then
56 if (locales->IsUndefined()) {
61 // 3. If Type(locales) is String or Type(locales) is Object and locales has an [[InitializedLocale]] internal slot,
63 // a. Let O be CreateArrayFromList(« locales »).
65 // a.Let O be ? ToObject(locales).
66 if (locales->IsString()) {
67 JSHandle<EcmaString> tag = JSHandle<EcmaString>::Cast(locales);
74 } else if (locales->IsJSLocale()) {
75 JSHandle<EcmaString> tag = JSLocale::ToString(thread, JSHandle<JSLocale>::Cast(locales));
84 JSHandle<JSObject> obj = JSTaggedValue::ToObject(thread, locales);