[Webkit-unassigned] [Bug 187519] New: Date constructor with negative value argument

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 10 08:38:46 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187519

            Bug ID: 187519
           Summary: Date constructor with negative value argument
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gfablima at gmail.com

Hi everyone,

I found an inconsistence on Date() with a negative value.
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.

Steps to reproduce:
```
d = new Date(-0);
print(Object.is(d.getTime(), +0))
```

Actual results:
false

Expected results:
true

V8 and SpiderMonkey works as expected.

OS: Ubuntu 16.04 x64
Version: 606.1.9.4

-- 
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/20180710/23ad1938/attachment.html>


More information about the webkit-unassigned mailing list