archives

« Bugzilla Issues Index

#4309 — 9.2.1 CanonicalizeLocaleList: Invalid call to CreateArrayFromList + editorial


9.2.1 CanonicalizeLocaleList (locales)

Step 3.a: Typo "ArrayCreateFromList" -> "CreateArrayFromList"

Step 4.a: Invalid call to CreateArrayFromList, `locales` is not a List type. I'd simply remove the complete step and change step 3.a and step 4 to:

> 3.a Let locales be CreateArrayFromList(«locales»).
> 4. Let O be ToObject(locales).

Step 5: Missing ReturnIfAbrupt after ToObject.

Step 6 has wrong indentation (labelled as "i") + merge with step labelled 6:

> 6. Let len be ToLength(Get(O, "length")).

Step 8.c: Change `kPresent` to italic font.

Step 8.d.i: Missing ReturnIfAbrupt after Get

Step 8.d.ii: Omit "the" and "then"

> If Type(kValue) is neither String nor Object, throw a TypeError exception.

Step 8.d.iii: Missing ReturnIfAbrupt after ToString

Step 8.d.iv: Omit "the result of", omit "then", remove comma after call to IsStructurallyValidLanguageTag


Step 8.d.vi: Unnecessary ReturnIfAbrupt, CanonicalizeLanguageTag is not fallible

Step 8.d.vii: Omit "then".