Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_GetClassPrototype

This article needs a technical review. How you can help.

Get the builtin class prototype object.

Syntax

bool
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.

Description

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,