This is an archived page. It's not actively maintained.


Enumerate standard class in an object.


JS_EnumerateStandardClasses(JSContext *cx, JS::HandleObject obj);
Name Type Description
cx JSContext * Pointer to the executable script context for which to initialize JS function and object classes. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.
obj JS::HandleObject An object to enumerate standard classes.


The global object's class's enumerate op should call JS_EnumerateStandardClasses(cx, obj), to define eagerly during loops any classes not yet resolved lazily.

See Also