<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>12332</bug_id>
          
          <creation_ts>2007-01-18 21:33:57 -0800</creation_ts>
          <short_desc>callWebScriptMethod:withArguments: provides no way to determine if an exception was thrown</short_desc>
          <delta_ts>2007-12-10 06:34:28 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit API</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://lists.apple.com/archives/webkitsdk-dev/2006/Apr/msg00016.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Rowe (bdash)">mrowe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34239</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-18 21:33:57 -0800</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34222</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-18 21:38:38 -0800</bug_when>
    <thetext>&lt;rdar://problem/4941072&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>