Get the builtin class constructor.
Syntax
bool
JS_GetClassObject(JSContext *cx, JSProtoKey key,
                  JS::MutableHandle<JSObject*> objp);
| Name | Type | Description | 
|---|---|---|
| cx | JSContext * | A context. Requires request. In a JS_THREADSAFEbuild, the caller must be in a request on thisJSContext. | 
| key | JSProtoKey | The key of the prototype. | 
| objp | JS::MutableHandle<JSObject*> | Out parameter. If successful, receive the class constructor. | 
Description
JS_GetClassObject gets the builtin class costructor for the specified prototype key.
If successful, JS_GetClassObject stores the class constructor to *objp and returns true, otherwise returns false and the value of *objp is undefined.