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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 12 23:45:40 PDT 2009


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


Raphael Speyer <rspeyer at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rspeyer at gmail.com




--- Comment #15 from Raphael Speyer <rspeyer at gmail.com>  2009-08-12 23:45:40 PDT ---
(In reply to comment #13)
> 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.

I think there is an important distinction between a vendor extension to
EcmaScript to allow an object to be treated as a function, and the meaning of
IsCallable in the spec.

As Luke mentioned above, according to the spec, a IsCallable is false for
RegExp's, and thus they should be serialised by JSON.stringify, in 15.12.3 step
10.

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