Changeset 15469 in webkit for trunk/JavaScriptCore/API/JSObjectRef.h
- Timestamp:
- Jul 16, 2006, 3:17:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRef.h
r15468 r15469 387 387 @abstract Convenience method for creating a JavaScript function with a given callback as its implementation. 388 388 @param context The execution context to use. 389 @param name A JSString containing the function's name. This will be used when converting the function to string. Pass NULL to create an anonymous function. 389 390 @param callAsFunction The JSObjectCallAsFunctionCallback to invoke when the function is called. 390 391 @result A JSObject that is an anonymous function. The object's prototype will be the default function prototype. 391 392 */ 392 JSObjectRef JSObjectMakeFunction(JSContextRef context, JS ObjectCallAsFunctionCallback callAsFunction);393 JSObjectRef JSObjectMakeFunction(JSContextRef context, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction); 393 394 /*! 394 395 @function … … 404 405 @abstract Creates a function with a given script as its body. 405 406 @param context The execution context to use. 406 @param name A JSString containing the function's name. Pass NULL to create an anonymous function.407 @param name A JSString containing the function's name. This will be used when converting the function to string. Pass NULL to create an anonymous function. 407 408 @param parameterCount An integer count of the number of parameter names in parameterNames. 408 409 @param parameterNames A JSString array containing the names of the function's parameters. Pass NULL if parameterCount is 0. … … 501 502 @param object A JSObject whose private data you want to get. 502 503 @result A void* that points to the object's private data, if the object has private data, otherwise NULL. 503 @discussion JSObjectGetPrivate and JSObjectSetPrivate only work on objects created by JSObjectMake, JSObjectMakeFunction, and JSObjectMakeConstructor.504 504 */ 505 505 void* JSObjectGetPrivate(JSObjectRef object); … … 510 510 @param object A JSObject whose private data you want to set. 511 511 @param data A void* that points to the object's private data. 512 @result true if the set operation succeeds, otherwise false.513 @discussion JSObjectGetPrivate and JSObjectSetPrivate only work on objects created by JSObjectMake, JSObjectMakeFunction, and JSObjectMakeConstructor.512 @result true if the object can store private data, otherwise false. 513 @discussion Only custom objects created with a JSClass can store private data. 514 514 */ 515 515 bool JSObjectSetPrivate(JSObjectRef object, void* data);
Note:
See TracChangeset
for help on using the changeset viewer.