Obsolete since JSAPI 29
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
JSMarkOp is the type of the
JSClass.mark callback in SpiderMonkey 1.7 and earlier. In SpiderMonkey 1.8,
JSMarkOp will be deprecated. All new code using SpiderMonkey 1.8 or later should use a
JSTraceOp instead to ensure that the tracing APIs work properly.
typedef uint32 (* JSMarkOp)(JSContext *cx, JSObject *obj, void *arg);
||The JS context in which the mark phase of garbage collection is occurring.|
||The object to be marked.|
||Opaque data which the
JSClass offers the following hook:
JSClass.markcallback during the mark phase of garbage collection.