« Return to Thread: Date.prototype.toISOString and Invalid Date

RE: Date.prototype.toISOString and Invalid Date

by Allen Wirfs-Brock-2 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Date.prototype.toJSON is defined (using pseudo code) to be generally equivalent to

               return this.toISOString();

 

 

 

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

 

On Wed, Jun 10, 2009 at 11:00 AM, Allen Wirfs-Brock <Allen.Wirfs-Brock@...> 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


_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss

 « Return to Thread: Date.prototype.toISOString and Invalid Date