I would assume that this is because the JSON grammar doesn't include
"undefined" as an acceptable value -- JSON.stringify({foo:undefined})
returns "{}". Perhaps JSON.stringify(undefined) should, however, return
"" -- in my view, this would make more sense.
On 16/07/12 10:48, Axel Rauschmayer wrote:
... returns undefined. Shouldn't it be "undefined"?
--
Dr. Axel Rauschmayer
a...@rauschma.de <mailto:a...@rauschma.de>
home: rauschma.de <http://rauschma.de>
twitter: twitter.com/rauschma <http://twitter.com/rauschma>
blog: 2ality.com <http://2ality.com>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
--
Barry van Oudtshoorn
www.barryvan.com.au
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss