1282SV: SV: [json] new Date(NaN)
- Jun 18 11:32 AMThen apparently you didnt say what you meant. No offense, that was what I needed to clarify.
that different implementations of JSON.stringify([new Date()]) do different things.
Fra: firstname.lastname@example.org [mailto:email@example.com] På vegne af Douglas Crockford
Sendt: 18. juni 2009 19:52
Emne: Re: SV: [json] new Date(NaN)
--- In firstname.lastname@example.org, "Jakob Kruse" <kruse@...> wrote:
> "new Date()" normally produces a perfectly ok Date object representing the current date and time. Does your change to ES5 mean that "JSON.stringify([ <any date object> ])" will produce "[null]"? And if not, why should it refuse to stringify the current date and time in this manner when other dates and times give meaningful results?
I meant exactly what I said. This only concerns new Date(NaN).
[Non-text portions of this message have been removed]
- Next post in topic >>