[Webkit-unassigned] [Bug 187519] Date constructor with negative value argument
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 20 14:47:22 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=187519
Alexey Shvayka <shvaikalesh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |shvaikalesh at gmail.com
Resolution|--- |WORKSFORME
--- Comment #2 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to isol2 from comment #1)
> Daily build v233772 not reproduce this issue
r261927 doesn't reproduce this either.
(In reply to gfablima from comment #0)
> I was looking on ES6 specification about this issue but I didn't found an
> answer, maybe the correct way is convert the -0 to +0
> as V8 and SpiderMonkey do.
Date constructor (https://tc39.es/ecma262/#sec-date-value) performs TimeClip at step 4.d,
which uses ToInteger (https://tc39.es/ecma262/#sec-tointeger) to normalize -0 to 0 (step 2).
This is covered by:
https://test262.report/browse/built-ins/Date/TimeClip_negative_zero.js
https://test262.report/browse/built-ins/Date/prototype/getTime/this-value-valid-date.js
https://test262.report/browse/built-ins/Date/prototype/valueOf/S9.4_A3_T2.js
(all passed by JSC)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200520/b1e703f1/attachment.htm>
More information about the webkit-unassigned
mailing list