JSON.stringify 15.12.3, Str algorithm 9a

Allen Wirfs-Brock Allen.Wirfs-Brock at microsoft.com
Thu Mar 5 11:20:17 PST 2009


Thanks,
Both Crock and I agree with you, so I'll add this to the Errata

9.a should be:
  a. If value is finite then return ToString(value).



Allen

>-----Original Message-----
>From: es-discuss-bounces at mozilla.org [mailto:es-discuss-
>bounces at mozilla.org] On Behalf Of Robert Sayre
>Sent: Thursday, March 05, 2009 10:03 AM
>To: es-discuss
>Subject: JSON.stringify 15.12.3, Str algorithm 9a
>
>In describing the abstract operation Str(key, holder), the spec says
>
>9. If Type(value) is number
>  a. If value is finite then return value.
>  b. else, return "null"
>
>Perhaps I am misreading, but this looks like a bug to me, since Str
>should return a string.
>
>--
>
>Robert Sayre
>
>"I would have written a shorter letter, but I did not have the time."
>_______________________________________________
>Es-discuss mailing list
>Es-discuss at mozilla.org
>https://mail.mozilla.org/listinfo/es-discuss



More information about the Es-discuss mailing list