[Webkit-unassigned] [Bug 49420] New: Clean up syntax/reference error throw.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 11 17:44:18 PST 2010


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

           Summary: Clean up syntax/reference error throw.
           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


Some errors detected at compile time are thrown at runtime.  We currently do so using a op_new_error/op_throw bytecode pair.  This is not ideal.  op_throw is used for explicit user throw statements, and has different requirements in terms or meta data attached to the exception (controlled by the explicitThrow parameter passed to Interpreter::throwException).  To work around this, op_new_error has to add the meta data at an early stage, which is unlike other VM exceptions being raised.

We can simplify this and bring into line with other exception behaviour by changing new_error from just allocating an Exception instance to also throwing it – but as a regular VM throw, correctly passing explicitThrow as false.

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