[Bug 16075] Make a float/double type that excludes NaN/Infinity/-Infinity

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16075

--- Comment #8 from Cameron McCormack <cam@mcc.id.au> 2012-03-06 03:00:36 UTC ---
(In reply to comment #7)
> Do we want to do the same thing with Date's? A javascript Date object can be an
> "invalid date". This happens for example for
> 
> x = new Date("foo");

Possibly, although Dates are used far less often than floats/doubles so I'm not
sure whether it's worth it at the moment.  There are only two uses of Date that
are taken as input that I could find: HTMLInputElement.valueAsDate and
Contact.birthday (from the Contacts API spec).  The former handles NaN dates
specifically to do something other than throwing.  The latter doesn't say what
it means for the birthday to be the invalid date value, but it also doesn't
have much detail there.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 6 March 2012 03:00:39 UTC