We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


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

Document Tags and Contributors

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