[Webkit-unassigned] [Bug 46057] New: Bad end-of-line management in JSON.parse

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 19 11:55:07 PDT 2010


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

           Summary: Bad end-of-line management in JSON.parse
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: xovni at wanadoo.fr


Using the '\n' string (not the EOL character, the string with '\' and 'n') in JSON.parse gives an error. The error happens both in the javascript console and when parsing a sting outside the console.

Example:
1. Open the javascript console
2. Type: JSON.parse('["\n"]')

This should create a list containing a string with the EOL character, but it gives an error. The bug appears with Epiphany (Linux) and Safari (Windows). No bug with Firefox or Chrome.

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