Changeset 15444 in webkit for trunk/JavaScriptCore/API/JSObjectRef.h
- Timestamp:
- Jul 14, 2006, 9:16:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRef.h
r15443 r15444 176 176 @param function A JSObject that is the function being called. 177 177 @param thisObject A JSObject that is the 'this' variable in the function's scope. 178 @param arg c An integer count of the number of arguments in argv.179 @param arg vA JSValue array of the arguments passed to the function.178 @param argumentCount An integer count of the number of arguments in arguments. 179 @param arguments A JSValue array of the arguments passed to the function. 180 180 @param exception A pointer to a JSValueRef in which to return an exception, if any. 181 181 @result A JSValue that is the function's return value. 182 182 @discussion If you named your function CallAsFunction, you would declare it like this: 183 183 184 JSValueRef CallAsFunction(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t arg c, JSValueRef argv[], JSValueRef* exception);184 JSValueRef CallAsFunction(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception); 185 185 186 186 If your callback were invoked by the JavaScript expression 'myObject.myMemberFunction()', function would be set to myMemberFunction, and thisObject would be set to myObject. … … 189 189 */ 190 190 typedef JSValueRef 191 (*JSObjectCallAsFunctionCallback) (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t arg c, JSValueRef argv[], JSValueRef* exception);191 (*JSObjectCallAsFunctionCallback) (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception); 192 192 193 193 /*! … … 196 196 @param context The current execution context. 197 197 @param constructor A JSObject that is the constructor being called. 198 @param arg c An integer count of the number of arguments in argv.199 @param arg vA JSValue array of the arguments passed to the function.198 @param argumentCount An integer count of the number of arguments in arguments. 199 @param arguments A JSValue array of the arguments passed to the function. 200 200 @param exception A pointer to a JSValueRef in which to return an exception, if any. 201 201 @result A JSObject that is the constructor's return value. 202 202 @discussion If you named your function CallAsConstructor, you would declare it like this: 203 203 204 JSObjectRef CallAsConstructor(JSContextRef context, JSObjectRef constructor, size_t arg c, JSValueRef argv[], JSValueRef* exception);204 JSObjectRef CallAsConstructor(JSContextRef context, JSObjectRef constructor, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception); 205 205 206 206 If your callback were invoked by the JavaScript expression 'new myConstructorFunction()', constructor would be set to myConstructorFunction. … … 209 209 */ 210 210 typedef JSObjectRef 211 (*JSObjectCallAsConstructorCallback) (JSContextRef context, JSObjectRef constructor, size_t arg c, JSValueRef argv[], JSValueRef* exception);211 (*JSObjectCallAsConstructorCallback) (JSContextRef context, JSObjectRef constructor, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception); 212 212 213 213 /*! … … 500 500 @param object The JSObject to call as a function. 501 501 @param thisObject The object to use as "this," or NULL to use the global object as "this." 502 @param arg c An integer count of the number of arguments in argv.503 @param arg vA JSValue array of the arguments to pass to the function.502 @param argumentCount An integer count of the number of arguments in arguments. 503 @param arguments A JSValue array of the arguments to pass to the function. 504 504 @param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. 505 505 @result The JSValue that results from calling object as a function, or NULL if an exception is thrown or object is not a function. 506 506 */ 507 JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t arg c, JSValueRef argv[], JSValueRef* exception);507 JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception); 508 508 /*! 509 509 @function … … 518 518 @param context The execution context to use. 519 519 @param object The JSObject to call as a constructor. 520 @param arg c An integer count of the number of arguments in argv.521 @param arg vA JSValue array of the arguments to pass to the function.520 @param argumentCount An integer count of the number of arguments in arguments. 521 @param arguments A JSValue array of the arguments to pass to the function. 522 522 @param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. 523 523 @result The JSObject that results from calling object as a constructor, or NULL if an exception is thrown or object is not a constructor. 524 524 */ 525 JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t arg c, JSValueRef argv[], JSValueRef* exception);525 JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception); 526 526 527 527 /*!
Note:
See TracChangeset
for help on using the changeset viewer.