Date.prototype.toISOString and Invalid Date

Allen Wirfs-Brock Allen.Wirfs-Brock at microsoft.com
Wed Jun 10 11:07:20 PDT 2009


Date.prototype.toJSON is defined (using pseudo code) to be generally equivalent to
               return this.toISOString();



From: Mark S. Miller [mailto:erights at google.com]
Sent: Wednesday, June 10, 2009 11:04 AM
To: Allen Wirfs-Brock
Cc: Brendan Eich; es5-discuss at mozilla.org; es-discuss at mozilla.org
Subject: Re: Date.prototype.toISOString and Invalid Date

On Wed, Jun 10, 2009 at 11:00 AM, Allen Wirfs-Brock <Allen.Wirfs-Brock at microsoft.com<mailto:Allen.Wirfs-Brock at microsoft.com>> wrote:
This would also imply that (new Date(NaN).toJSON()) also throws.  Is everybody fine with that??

I must be missing something. How does that follow?



--
   Cheers,
   --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es5-discuss/attachments/20090610/0bf640e3/attachment.html>


More information about the es5-discuss mailing list