Changeset 266236 in webkit for trunk/Source/JavaScriptCore/API/JSObjectRef.h
- Timestamp:
- Aug 27, 2020, 9:41:27 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSObjectRef.h
r248833 r266236 340 340 341 341 A NULL callback specifies that the default object callback should substitute, except in the case of hasProperty, where it specifies that getProperty should substitute. 342 343 It is not possible to use JS subclassing with objects created from a class definition that sets callAsConstructor by default. Subclassing is supported via the JSObjectMakeConstructor function, however. 342 344 */ 343 345 typedef struct { … … 427 429 @param callAsConstructor A JSObjectCallAsConstructorCallback to invoke when your constructor is used in a 'new' expression. Pass NULL to use the default object constructor. 428 430 @result A JSObject that is a constructor. The object's prototype will be the default object prototype. 429 @discussion The default object constructor takes no arguments and constructs an object of class jsClass with no private data. 431 @discussion The default object constructor takes no arguments and constructs an object of class jsClass with no private data. If the constructor is inherited via JS subclassing and the value returned from callAsConstructor was created with jsClass, then the returned object will have it's prototype overridden to the derived class's prototype. 430 432 */ 431 433 JS_EXPORT JSObjectRef JSObjectMakeConstructor(JSContextRef ctx, JSClassRef jsClass, JSObjectCallAsConstructorCallback callAsConstructor);
Note:
See TracChangeset
for help on using the changeset viewer.