[Webkit-unassigned] [Bug 43793] Date("") should be an invalid date time

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 10 11:09:35 PDT 2010


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





--- Comment #3 from Leo Yang <leo.yang at torchmobile.com.cn>  2010-08-10 11:09:35 PST ---
(In reply to comment #2)
> (From update of attachment 64013 [details])
> Why should new Date("") be NaN? Can you point to a part of a spec, or the behavior of another browser? As a general rule, it's better for your ChangeLog to explain the why, rather than the what.
For IE and FireFox, new Date("") is NaN.

> 
> >      cachedDateString = UString();
> > +    cachedDateStringValue = NaN;
> 
> Can you explain why you needed to make this change?
There isn't initial value for cachedDateStringValue. Do we depend on the first assignment when Date cache is hit? After we call restDateCache(), we leave cachedDateStringValue and reset cachedDateString, it's not consistent.

> 
> UString() should not be == to UString(""). If it is, I think we have another bug to solve.
Yes, I don't know why UString() == UString(""). This also need to be fixed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list