Ignore:
Timestamp:
Jul 8, 2006, 11:08:34 AM (19 years ago)
Author:
ggaren
Message:

Reviewed by Anders.


  • Make JSObjectGetProperty return a JSValue or NULL, like JSEvaluate does.
  • API/JSObjectRef.cpp: (JSObjectGetProperty):
  • API/JSObjectRef.h:
  • API/testapi.c: (main):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSObjectRef.h

    r15233 r15235  
    387387@param object The JSObject whose property you want to get.
    388388@param propertyName A JSStringBuffer containing the property's name.
    389 @param value A pointer to a JSValueRef in which to store the property's value. On return, value will contain the property's value. Pass NULL if you do not care to store the property's value.
    390 @result true if the object has a property whose name matches propertyName, otherwise false. If this function returns false, the contents of value will be unmodified.
    391 */
    392 bool JSObjectGetProperty(JSContextRef context, JSObjectRef object, JSStringBufferRef propertyName, JSValueRef* value);
     389@result The property's value, or NULL if the object does not have a property whose name matches propertyName.
     390*/
     391JSValueRef JSObjectGetProperty(JSContextRef context, JSObjectRef object, JSStringBufferRef propertyName);
    393392/*!
    394393@function
Note: See TracChangeset for help on using the changeset viewer.