| ||||||
SummaryRetrieves the class associated with an object. | ||||||
SyntaxJSClass * JS_GetClass(JSObject *obj); Alternative syntax when JS_THREADSAFE is defined in a multithreaded environment: JSClass * JS_GetClass(JSContext *cx, JSObject *obj) | ||||||
DescriptionJS_GetClass returns a pointer to the class associated with a specified JS object, obj . The class is an internal JS data structure that you can create for objects as needed. Generally you do not expose a class in your applications, but use it behind the scenes.
If your application runs in a multithreaded environment, define
If an object has a class,
| ||||||
See Also
|