Share via


2.1.34 [ECMA-ES2017] Section 20.3.1.15 TimeClip ( time )

V0201: TimeClip does not convert negative zero to positive zero

The specification states:

 ... TimeClip (time)
  
     The abstract operation TimeClip calculates a number of milliseconds from its 
     argument, which must be an ECMAScript Number value. This operator functions as 
     follows:
  
         1.  If time is not finite, return NaN.
         2.  If abs(time) > 8.64 × 10^15, return NaN.
         3.  Let clippedTime be ... ToInteger(time).
         4.  If clippedTime is -0, set clippedTime to +0.
         5.  Return clippedTime.

EdgeHTML Mode

TimeClip does not convert negative zero to positive zero (step 4).