Changeset 15482 in webkit for trunk/JavaScriptCore/API/JSObjectRef.h
- Timestamp:
- Jul 17, 2006, 1:20:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRef.h
r15481 r15482 389 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. 390 390 @param callAsFunction The JSObjectCallAsFunctionCallback to invoke when the function is called. 391 @result A JSObject that is a n anonymousfunction. The object's prototype will be the default function prototype.391 @result A JSObject that is a function. The object's prototype will be the default function prototype. 392 392 */ 393 393 JSObjectRef JSObjectMakeFunctionWithCallback(JSContextRef ctx, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction); 394 394 395 /*! 395 396 @function 396 397 @abstract Convenience method for creating a JavaScript constructor with a given callback as its implementation. 397 398 @param ctx The execution context to use. 399 @param prototype A JSValue to use as the constructor's .prototype property. This should be the same value your constructor will set as the prototype of the objects it constructs. 398 400 @param callAsConstructor The JSObjectCallAsConstructorCallback to invoke when the constructor is used in a 'new' expression. 399 401 @result A JSObject that is a constructor. The object's prototype will be the default object prototype. 400 402 */ 401 JSObjectRef JSObjectMakeConstructor (JSContextRef ctx, JSObjectCallAsConstructorCallback callAsConstructor);403 JSObjectRef JSObjectMakeConstructorWithCallback(JSContextRef ctx, JSValueRef prototype, JSObjectCallAsConstructorCallback callAsConstructor); 402 404 403 405 /*!
Note:
See TracChangeset
for help on using the changeset viewer.