Changeset 56315 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Mar 21, 2010, 1:35:09 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRefPrivate.h
r56314 r56315 40 40 @param propertyName A JSString containing the property's name. 41 41 @param value A JSValue to use as the property's value. This may be NULL. 42 @result The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private properties. If this method is used on an object with a NULL JSClass it will returnfalse.42 @result true if object can store private data, otherwise false. 43 43 @discussion This API allows you to store JS values directly an object in a way that will be ensure that they are kept alive without exposing them to JavaScript code and without introducing the reference cycles that may occur when using JSValueProtect. 44 45 The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private properties. 44 46 */ 45 47 JS_EXPORT bool JSObjectSetPrivateProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value); … … 61 63 @param object The JSObject whose private property you want to delete. 62 64 @param propertyName A JSString containing the property's name. 63 @result The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private properties. If this method is used on an object with a NULL JSClass it will return false. 65 @result true if object can store private data, otherwise false. 66 @discussion The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private data. 64 67 */ 65 68 JS_EXPORT bool JSObjectDeletePrivateProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName);
Note:
See TracChangeset
for help on using the changeset viewer.