W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

[Bug 16539] The undefined date type

From: <bugzilla@jessica.w3.org>
Date: Tue, 27 Mar 2012 23:07:30 +0000
To: public-script-coord@w3.org
Message-Id: <E1SCfUA-0006jm-4O@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16539

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2012-03-27 23:07:29 UTC ---
This is the algorithm from converting from a JS value to an IDL value of type
Date.  It doesn't mean "return undefined" or "return new Date(undefined)" -- it
doesn't really make sense to think about returning JS values here.

The IDL Date type has values that correspond to all of the possibly time values
that JS Date objects can represent, including the time value that does not
represent a specific point in time (which in a JS Date object is one that could
be created by for example evaluating `new Date("")`).  In space of IDL Date
type values, I just call that value "undefined".

-- 
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, 27 March 2012 23:07:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC