Register externally maintained GC roots.
void JS_SetExtraGCRoots(JSRuntime *rt, JSTraceDataOp traceop, void *data);
|rt||The runtime whose trace operation we should set.|
|traceop||The trace operation. This is described below.|
|data||Closure pointer, to be passed through to traceop.|
typedef void JSTraceDataOp (JSTracer *trc, void *data);
|trc||Tracing data, to be passed through to JS_CallTracer.|
|data||Closure pointer. This is the data value that was passed to JS_SetExtraGCRoots when this callback function was installed.|
Generic trace operation that calls JS_CallTracer on additional traceable things.