[Webkit-unassigned] [Bug 28117] New: Native JSON.stringify does not omit functions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 8 21:02:11 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28117

           Summary: Native JSON.stringify does not omit functions
           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: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: lsmith at lucassmith.name


JSON does not define functions.  They should be treated in the same manner as
undefined, omitted in objects and replaced by null in arrays.

Nightly r46919 stringifies functions as objects.

JSON.stringify({fn:function () {}}) should return '{}' but returns '{"fn":{}}'
in the nightly.

-- 
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