Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -28388,10 +28388,8 @@ <h1>String.prototype.toLowerCase ( )</h1>
1. Let _O_ be ? RequireObjectCoercible(*this* value).
1. Let _S_ be ? ToString(_O_).
1. Let _cpList_ be a List containing in order the code points as defined in <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref> of _S_, starting at the first element of _S_.
1. For each code point _c_ in _cpList_, if the Unicode Character Database provides a language insensitive lower case equivalent of _c_, then replace _c_ in _cpList_ with that equivalent code point(s).
1. Let _cuList_ be a new empty List.
1. For each code point _c_ in _cpList_, in order, append to _cuList_ the elements of the UTF16Encoding of _c_.
1. Let _L_ be a String whose elements are, in order, the elements of _cuList_.
1. Let _cuList_ be a List where the elements are the result of toLowercase(_cplist_), according to the Unicode Default Case Conversion algorithm.
1. Let _L_ be a String whose elements are the UTF16Encoding of the code points of _cuList_.
1. Return _L_.
</emu-alg>
<p>The result must be derived according to the locale-insensitive case mappings in the Unicode Character Database (this explicitly includes not only the UnicodeData.txt file, but also all locale-insensitive mappings in the SpecialCasings.txt file that accompanies it).</p>
Expand Down Expand Up @@ -28419,7 +28417,7 @@ <h1>String.prototype.toString ( )</h1>
<emu-clause id="sec-string.prototype.touppercase">
<h1>String.prototype.toUpperCase ( )</h1>
<p>This function interprets a String value as a sequence of UTF-16 encoded code points, as described in <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>.</p>
<p>This function behaves in exactly the same way as `String.prototype.toLowerCase`, except that code points are mapped to their _uppercase_ equivalents as specified in the Unicode Character Database.</p>
<p>This function behaves in exactly the same way as `String.prototype.toLowerCase`, except that the String is mapped using to toUppercase algorithm of Unicode Default Case Conversion.</p>
<emu-note>
<p>The `toUpperCase` function is intentionally generic; it does not require that its *this* value be a String object. Therefore, it can be transferred to other kinds of objects for use as a method.</p>
</emu-note>
Expand Down