[Webkit-unassigned] [Bug 25630] New: JavaScript console doesn't provide useful error messages for syntax errors

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 7 14:00:16 PDT 2009


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

           Summary: JavaScript console doesn't provide useful error messages
                    for syntax errors
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rboucher at gmail.com


Steps to reproduce: 

1. Load any page with invalid JavaScript code.
2. Open the Web Inspector
3. You should see the error string "SyntaxError: Parse error"

This error string is not useful, and provides no context about either the
location of the parse error, or the kind of error. Try loading the same file in
Firefox with Firebug and you'll get a very descriptive error, like the
following:

missing ; before statement
    "some code from the line following the error would be shown here";


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list