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

JS_GetClassObject

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

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

See Also

Document Tags and Contributors

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