Skip to content

Commit

Permalink
Editorial: minor tweaks around 2 UTF16DecodeString calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdyck committed Jun 20, 2019
1 parent 6b15678 commit 524277f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -29052,9 +29052,9 @@ <h1>String.prototype.toLowerCase ( )</h1>
<emu-alg>
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 of UTF16DecodeString(_S_).
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 ! UTF16Encode(_cuList_).
1. Let _sText_ be UTF16DecodeString(_S_).
1. Let _lowerText_ be the result of toLowercase(_sText_), according to the Unicode Default Case Conversion algorithm.
1. Let _L_ be ! UTF16Encode(_lowerText_).
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 @@ -36543,8 +36543,7 @@ <h1>Runtime Semantics: QuoteJSONString ( _value_ )</h1>
<p>This operation 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>
<emu-alg>
1. Let _product_ be the String value consisting solely of the code unit 0x0022 (QUOTATION MARK).
1. Let _cpList_ be a List containing in order the code points of UTF16DecodeString(_value_).
1. For each code point _C_ in _cpList_, do
1. For each code point _C_ in UTF16DecodeString(_value_), do
1. If _C_ is listed in the &ldquo;Code Point&rdquo; column of <emu-xref href="#table-json-single-character-escapes"></emu-xref>, then
1. Set _product_ to the string-concatenation of _product_ and the escape sequence for _C_ as specified in the &ldquo;Escape Sequence&rdquo; column of the corresponding row.
1. Else if _C_ has a numeric value less than 0x0020 (SPACE), or if _C_ has the same numeric value as a <emu-xref href="#leading-surrogate"></emu-xref> or <emu-xref href="#trailing-surrogate"></emu-xref>, then
Expand Down

0 comments on commit 524277f

Please sign in to comment.