[Webkit-unassigned] [Bug 28118] New: JSON.stringify replacer returning undefined does not omit object properties
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 8 21:17:30 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28118
Summary: JSON.stringify replacer returning undefined does not
omit object properties
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
URL: http://lucassmith.name/pub/JSON-test-suite/test.html
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: lsmith at lucassmith.name
JSON.stringify({remove:"me"}, function (k,v) { return k === 'remove' ?
undefined : v; }) should return '{}', but returns '{"remove":null}'
Per the ECMA5 spec, undefined returned from a replacer should result in
omission from the resulting JSON string in the case of object properties, and
null in the case of array items. Currently, null is used for both cases.
r46919
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list