Get the builtin class prototype object.


JS_GetClassPrototype(JSContext *cx, JSProtoKey key,
                     JS::MutableHandle<JSObject*> objp);
Name Type Description
cx JSContext * A context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.
key JSProtoKey The key of the prototype.
objp JS::MutableHandle&lt;JSObject*&gt; Out parameter. If successful, receive the class prototype object.


JS_GetClassPrototype gets the builtin class costructor for the specified prototype key.

If successful, JS_GetClassPrototype stores the class prototype object to *objp and returns true, otherwise returns false and the value of *objp is undefined.

See Also