Re: How do I trace objects on the heap with JS 59

Miles <[email protected]> Mon, 13 Aug 2018 04:34:32 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
Thanks for the replies and for updating the documentation to include tracing. Much appreciated. It sounds like JS_AddExtraGCRootsTracer, JS::Heap<JSObject *> and JS::TraceEdge are what I need then.

One final question if I may...
GS thing pointers that are parameters to functions now use JS::Handle<T>. i.e. JS::Handle<JSObject *> (or JS::HandleObject) for objects.
If I use JS::Heap<JSObject *> can these be automatically coerced into JS::Handle<JSObject *> for passing to functions or do I have to do something else to be able to pass them as function parameters?

Thanks

Miles