[Webkit-unassigned] [Bug 221421] New: ConsoleMessage: Don't encode string JSONLogValue's as JSON

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 4 11:41:10 PST 2021


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

            Bug ID: 221421
           Summary: ConsoleMessage: Don't encode string JSONLogValue's as
                    JSON
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aboya at igalia.com

JSONLogValue's have two tagged types: String and JSON. Despite this,
the ConsoleMessage constructor was converting the string values to
JSON while coalescing them.

This also added quotes on the return value of message() for
ConsoleMessage's created with this constructor, but not with others.

This patch removes that behavior, keeping strings as strings and using
wrapObject() instead of wrapJSONString() for them.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210204/22d1a40c/attachment.htm>


More information about the webkit-unassigned mailing list