Date.parse should reject out of range values (#4248)

The spec doesn't say explicitly that Date.parse should call TimeClip
abstract operation at the end. But Date object can represent time
values only in the range 1970 Jan 01 +/-8,640,000,000,000,000 ms.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
This commit is contained in:
Csaba Osztrogonác
2020-10-02 10:39:52 +02:00
committed by GitHub
parent 261a55c6b5
commit 7458766033
3 changed files with 7 additions and 3 deletions
-1
View File
@@ -694,7 +694,6 @@
<test id="built-ins/DataView/toindex-bytelength-sab.js"><reason></reason></test>
<test id="built-ins/DataView/toindex-byteoffset-sab.js"><reason></reason></test>
<test id="built-ins/DataView/toindex-byteoffset.js"><reason></reason></test>
<test id="built-ins/Date/parse/time-value-maximum-range.js"><reason></reason></test>
<test id="built-ins/Date/proto-from-ctor-realm-one.js"><reason></reason></test>
<test id="built-ins/Date/proto-from-ctor-realm-two.js"><reason></reason></test>
<test id="built-ins/Date/proto-from-ctor-realm-zero.js"><reason></reason></test>