[Webkit-unassigned] [Bug 242810] New: [JSC] String serialization of functions doesn't match Blink / Gecko

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 15 10:42:47 PDT 2022


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

            Bug ID: 242810
           Summary: [JSC] String serialization of functions doesn't match
                    Blink / Gecko
           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: cdumez at apple.com
                CC: justin_michaud at apple.com, mark.lam at apple.com,
                    sbarati at apple.com, ysuzuki at apple.com

[JSC] String serialization of functions doesn't match Blink / Gecko:
https://jsbin.com/zomehipuho/edit?html,output

f = function(){ }
"" + f is "function(){ }" in Gecko and Blink
"" + f is "function (){ }" in WebKit

Gecko and Blink uses the format exactly as provided when constructing the function.
WebKit enforces a space between function and (), even if the original input didn't have one.

This is causing the following WPT test to fail:
imported/w3c/web-platform-tests/webstorage/storage_string_conversion.window.html

-- 
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/20220715/6b9610ce/attachment-0001.htm>


More information about the webkit-unassigned mailing list