Ignore:
Timestamp:
Jun 20, 2006, 5:20:00 PM (19 years ago)
Author:
thatcher
Message:

Reviewed by Geoff.

Make sure we clear the exception before returning so
that future calls will not fail because of an earlier
exception state. Assert on entry that the WebScriptObject
is working with an ExecState that dose not have an exception.
Document that evaluateWebScript and callWebScriptMethod return
WebUndefined when an exception is thrown.

  • bindings/objc/WebScriptObject.h:
  • bindings/objc/WebScriptObject.mm: (-[WebScriptObject callWebScriptMethod:withArguments:]): (-[WebScriptObject evaluateWebScript:]): (-[WebScriptObject setValue:forKey:]): (-[WebScriptObject valueForKey:]): (-[WebScriptObject removeWebScriptKey:]): (-[WebScriptObject webScriptValueAtIndex:]): (-[WebScriptObject setWebScriptValueAtIndex:value:]):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bindings/objc/WebScriptObject.h

    r13610 r14932  
    188188    specified arguments.
    189189    @result Returns the result of calling the script method.
     190    Returns WebUndefined when an exception is thrown in the script environment.
    190191*/
    191192- (id)callWebScriptMethod:(NSString *)name withArguments:(NSArray *)args;
     
    197198    of the script is dependent of the target script environment.
    198199    @result Returns the result of evaluating the script in the script environment.
     200    Returns WebUndefined when an exception is thrown in the script environment.
    199201*/
    200202- (id)evaluateWebScript:(NSString *)script;
     
    219221    @param index The index of the property to return.  Index based access is dependent
    220222    @discussion Gets the value of the property at the specified index.
    221     @result The value of the property.
     223    @result The value of the property. Returns WebUndefined when an exception is
     224    thrown in the script environment.
    222225*/
    223226- (id)webScriptValueAtIndex:(unsigned int)index;
Note: See TracChangeset for help on using the changeset viewer.