[Webkit-unassigned] [Bug 71772] New: Literal tab in JSONString fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 7 23:39:36 PST 2011


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

           Summary: Literal tab in JSONString fails
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: charles.wei at torchmobile.com.cn
                CC: charles.wei at torchmobile.com.cn


currently we fail this test case;

function test(){  /**  literal tab in JSONString */
    /*
    * Spec: 15.12.1.1
    * Spec grammar seems to insist that anything below U+001F is a "control
character"
    * and not allowed to appear literally in JSONString.
    * As JSON grammar isn't meant to change we're stuck with this even if
browsers so far aligned on allowing this..
    */
    var passed=false;
    try{
        JSON.parse(
            '{"test": " "}'   // Replace the space with Tab,  which can't be input here and converts to 4-spaces copy and paste
        );
    }catch(e){
        passed = true;
    }
    return passed;
}

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