[Webkit-unassigned] [Bug 12332] New: callWebScriptMethod:withArguments: provides no way to determine if an exception was thrown

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 18 21:33:58 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12332

           Summary: callWebScriptMethod:withArguments: provides no way to
                    determine if an exception was thrown
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
               URL: http://lists.apple.com/archives/webkitsdk-
                    dev/2006/Apr/msg00016.html
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bdash at webkit.org


As per the mailing list post in the specified URL, -[WebScriptObject
callWebScriptMethod:withArguments:] translates an exception raised in the
called method into a return value of WebUndefined.  This makes it impossible to
distinguish between a genuine return value of undefined and an exception being
thrown.

-[WebScriptObject callWebScriptMethod:withArguments:] returns nil in other
situations:  if the given method doesn't exist on the object, or if it is not a
callable.  It may make more sense to handle exceptions in a similar way, though
the compatibility impact of changing the return value in this case is unknown.


-- 
Configure bugmail: http://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