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<JSObject*> 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

Document Tags and Contributors

 Contributors to this page: kscarfone, arai
 Last updated by: kscarfone,