archives

« Bugzilla Issues Index

#4306 — 9.2.6 LookupSupportedLocales


9.2.6 LookupSupportedLocales (availableLocales, requestedLocales)

Step 1: Unnecessary ToObject call
Step 1: Typo "ArrayCreateFromList" -> "CreateArrayFromList"

Step 2: Unnecessary ReturnIfAbrupt, CreateArrayFromList is not fallible

Steps 3-4: Merge steps
> 3. Let len be ToLength(Get(rLocales, "length")).


Step 8: LookupSupportedLocales should return a List instead of an Array object, because BestFitSupportedLocales also returns a List. Callers (= SupportedLocales) should perform the List to Array object conversion.

Steps 8-9:
> 8. Return subset.