Skip to content

Commit

Permalink
Editorial: '_trimmedString_' -> '_S_' in parseInt
Browse files Browse the repository at this point in the history
(Unnoticed bug in ceb31ab from PR #1602.)
  • Loading branch information
jmdyck committed Jul 15, 2019
1 parent 5c9339c commit 43be3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -23713,7 +23713,7 @@ <h1>parseInt ( _string_, _radix_ )</h1>
<p>The `parseInt` function produces an integer value dictated by interpretation of the contents of the _string_ argument according to the specified _radix_. Leading white space in _string_ is ignored. If _radix_ is *undefined* or 0, it is assumed to be 10 except when the number begins with the code unit pairs `0x` or `0X`, in which case a radix of 16 is assumed. If _radix_ is 16, the number may also optionally begin with the code unit pairs `0x` or `0X`.</p>
<p>The `parseInt` function is the <dfn>%parseInt%</dfn> intrinsic object. When the `parseInt` function is called, the following steps are taken:</p>
<emu-alg>
1. Let _trimmedString_ be ? TrimString(_string_, `"start"`).
1. Let _S_ be ? TrimString(_string_, `"start"`).
1. Let _sign_ be 1.
1. If _S_ is not empty and the first code unit of _S_ is the code unit 0x002D (HYPHEN-MINUS), set _sign_ to -1.
1. If _S_ is not empty and the first code unit of _S_ is the code unit 0x002B (PLUS SIGN) or the code unit 0x002D (HYPHEN-MINUS), remove the first code unit from _S_.
Expand Down

0 comments on commit 43be3c0

Please sign in to comment.