archives

« Bugzilla Issues Index

#4286 — 13.1.1 String.prototype.localeCompare: Use same steps 1-6 as ES2015, + editorial


13.1.1 String.prototype.localeCompare (that [, locales [, options ]])

Preamble: Change `that` to italic font.

Steps 1-6: Change to steps 1-5 from ES2015 String.prototype.localeCompare

> 1. Let O be RequireObjectCoercible(this value).
> 2. Let S be ToString(O).
> 3. ReturnIfAbrupt(S).
> 4. Let That be ToString(that).
> 5. ReturnIfAbrupt(That).

Step 9: Change `collator`, `S` and `That` to italic font.

Merge steps 9-10:
> 9. Return CompareStrings(collator, S, That).


> Preamble: Change `that` to italic font.

Fixed.


> Steps 1-6: Change to steps 1-5 from ES2015 String.prototype.localeCompare

Fixed.


> Step 9: Change `collator`, `S` and `That` to italic font.
> Merge steps 9-10: