Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editorial: tweak recent commit #376

Closed
wants to merge 3 commits into from
Closed
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
38 changes: 19 additions & 19 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12770,33 +12770,33 @@ <h1>Applying the `%` Operator</h1>
</ul>
</emu-clause>
<emu-clause id="sec-applying-the-exp-operator">
<h1>Applying the `**` operator</h1>
<h1>Applying the `**` Operator</h1>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec isn’t consistent as to whether title case or sentence case should be used for headings. E.g. https://tc39.github.io/ecma262/#sec-normative-references uses sentence case, but https://tc39.github.io/ecma262/#sec-ecmascript-overview uses title case. (I’d personally prefer sentence case everywhere.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it's pretty consistent on using title-case. Your example of sentence-case was changed to title-case 4 days ago in 5ee6f14. (I guess the rendered version hasn't caught up yet.)

(Looking at some example specs, it seems like ECMA prefers title-case and ISO prefers sentence-case.)

<p>
Returns an implementation-dependent approximation of the result of raising _base_ to the power _exponent_.
</p>
<ul>
<li>If _exponent_ is *NaN*, the result is *NaN*.</li>
<li>If _exponent_ is +0, the result is 1, even if _base_ is *NaN*.</li>
<li>If _exponent_ is 0, the result is 1, even if _base_ is *NaN*.</li>
<li>If _exponent_ is -0, the result is 1, even if _base_ is *NaN*.</li>
<li>If _base_ is *NaN* and _exponent_ is nonzero, the result is *NaN*.</li>
<li>If abs(_base_) &gt; 1 and _exponent_ is +&infin;, the result is +&infin;.</li>
<li>If abs(_base_) &gt; 1 and _exponent_ is &infin;, the result is +0.</li>
<li>If abs(_base_) is 1 and _exponent_ is +&infin;, the result is *NaN*.</li>
<li>If abs(_base_) is 1 and _exponent_ is &infin;, the result is *NaN*.</li>
<li>If abs(_base_) &lt; 1 and _exponent_ is +&infin;, the result is +0.</li>
<li>If abs(_base_) &lt; 1 and _exponent_ is &infin;, the result is +&infin;.</li>
<li>If _base_ is +&infin; and _exponent_ &gt; 0, the result is +&infin;.</li>
<li>If _base_ is +&infin; and _exponent_ &lt; 0, the result is +0.</li>
<li>If _base_ is &infin; and _exponent_ &gt; 0 and _exponent_ is an odd integer, the result is &infin;.</li>
<li>If _base_ is &infin; and _exponent_ &gt; 0 and _exponent_ is not an odd integer, the result is +&infin;.</li>
<li>If _base_ is &infin; and _exponent_ &lt; 0 and _exponent_ is an odd integer, the result is 0.</li>
<li>If _base_ is &infin; and _exponent_ &lt; 0 and _exponent_ is not an odd integer, the result is +0.</li>
<li>If abs(_base_) &gt; 1 and _exponent_ is *+&infin;*, the result is *+&infin;*.</li>
<li>If abs(_base_) &gt; 1 and _exponent_ is *-&infin;*, the result is +0.</li>
<li>If abs(_base_) is 1 and _exponent_ is *+&infin;*, the result is *NaN*.</li>
<li>If abs(_base_) is 1 and _exponent_ is *-&infin;*, the result is *NaN*.</li>
<li>If abs(_base_) &lt; 1 and _exponent_ is *+&infin;*, the result is +0.</li>
<li>If abs(_base_) &lt; 1 and _exponent_ is *-&infin;*, the result is *+&infin;*.</li>
<li>If _base_ is *+&infin;* and _exponent_ &gt; 0, the result is *+&infin;*.</li>
<li>If _base_ is *+&infin;* and _exponent_ &lt; 0, the result is +0.</li>
<li>If _base_ is *-&infin;* and _exponent_ &gt; 0 and _exponent_ is an odd integer, the result is *-&infin;*.</li>
<li>If _base_ is *-&infin;* and _exponent_ &gt; 0 and _exponent_ is not an odd integer, the result is *+&infin;*.</li>
<li>If _base_ is *-&infin;* and _exponent_ &lt; 0 and _exponent_ is an odd integer, the result is -0.</li>
<li>If _base_ is *-&infin;* and _exponent_ &lt; 0 and _exponent_ is not an odd integer, the result is +0.</li>
<li>If _base_ is +0 and _exponent_ &gt; 0, the result is +0.</li>
<li>If _base_ is +0 and _exponent_ &lt; 0, the result is +&infin;.</li>
<li>If _base_ is 0 and _exponent_ &gt; 0 and _exponent_ is an odd integer, the result is 0.</li>
<li>If _base_ is 0 and _exponent_ &gt; 0 and _exponent_ is not an odd integer, the result is +0.</li>
<li>If _base_ is 0 and _exponent_ &lt; 0 and _exponent_ is an odd integer, the result is &infin;.</li>
<li>If _base_ is 0 and _exponent_ &lt; 0 and _exponent_ is not an odd integer, the result is +&infin;.</li>
<li>If _base_ is +0 and _exponent_ &lt; 0, the result is *+&infin;*.</li>
<li>If _base_ is -0 and _exponent_ &gt; 0 and _exponent_ is an odd integer, the result is -0.</li>
<li>If _base_ is -0 and _exponent_ &gt; 0 and _exponent_ is not an odd integer, the result is +0.</li>
<li>If _base_ is -0 and _exponent_ &lt; 0 and _exponent_ is an odd integer, the result is *-&infin;*.</li>
<li>If _base_ is -0 and _exponent_ &lt; 0 and _exponent_ is not an odd integer, the result is *+&infin;*.</li>
<li>If _base_ &lt; 0 and _base_ is finite and _exponent_ is finite and _exponent_ is not an integer, the result is *NaN*.</li>
</ul>
<emu-note>
Expand Down