[Webkit-unassigned] [Bug 52079] New: Syntax errors should be early errors.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 7 13:22:31 PST 2011


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

           Summary: Syntax errors should be early errors.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: barraclough at apple.com


>From the spec:

"16 Errors"

"An implementation must report most errors at the time the relevant ECMAScript language construct is evaluated. An early error is an error that can be detected and reported prior to the evaluation of any construct in the Program containing the error. An implementation must report early errors in a Program prior to the first evaluation of that Program. Early errors in eval code are reported at the time eval is called but prior to evaluation of any construct within the eval code. All errors that are not early errors are runtime errors."

"An implementation must treat any instance of the following kinds of errors as an early error:"
"• Any syntax error."

JavaScriptCore incorrectly raises various parse errors (return from eval, break/continue outside of switch/loop) as runtime errors.
Fixing this will match FireFox behavior.

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