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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 12 22:26:10 PDT 2009


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





--- Comment #13 from Oliver Hunt <oliver at apple.com>  2009-08-12 22:26:10 PDT ---
> Currently native JSON support is present in Firefox 3.5, IE8, Chrome 3 beta,
> and recent WebKit nightlies.  All three of the other currently implementing
> browsers agree both that typeof /a/ == 'object' and JSON.stringify(/a/) ==
> '{}'.  There is value in interoperability.  If not typeof, please at least
> stringify RegExp instances as objects for the sake of convention.

RegExps are callable -- breaking this would break compatibility with json2.js,
and the bug is in mozilla for not correctly treating a callable object as
callable.

We cannot reasonably serialise regexps as standard objects -- the bug is in
firefox, not webkit.

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