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

Discrepancy in the note for TimeClip #1971

Closed
uid11 opened this issue Apr 26, 2020 · 0 comments · Fixed by #1965
Closed

Discrepancy in the note for TimeClip #1971

uid11 opened this issue Apr 26, 2020 · 0 comments · Fixed by #1965

Comments

@uid11
Copy link

uid11 commented Apr 26, 2020

There may be a discrepancy in the note for the abstract operation TimeClip (https://tc39.es/ecma262/#sec-timeclip).
The note mentions step 4, but the TimeClip algorithm at that moment contains only three steps.

      <emu-clause id="sec-timeclip" aoid="TimeClip">
        <h1>TimeClip ( _time_ )</h1>
        <p>The abstract operation TimeClip takes argument _time_ (a Number). It calculates a number of milliseconds. It performs the following steps when called:</p>
        <emu-alg>
          1. If _time_ is not finite, return *NaN*.
          1. If abs(_time_) &gt; 8.64 &times; 10<sup>15</sup>, return *NaN*.
          1. Return ! ToInteger(_time_).
        </emu-alg>
        <emu-note>
          <p>The point of step 4 is that an implementation is permitted a choice of internal representations of time values, for example as a 64-bit signed integer or as a 64-bit floating-point value. Depending on the implementation, this internal representation may or may not distinguish *-0* and *+0*.</p>
        </emu-note>
      </emu-clause>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant