Closed ptomato closed 5 years ago
We need an examples/customtracing.cpp that shows how to define your own C++ data structure that has GC pointer members (perhaps the private data of a JSClass?), and how to define a trace() method so that you can use JS::Rooted on it.
examples/customtracing.cpp
trace()
JS::Rooted
I have the basic cases in #19
We need an
examples/customtracing.cpp
that shows how to define your own C++ data structure that has GC pointer members (perhaps the private data of a JSClass?), and how to define atrace()
method so that you can useJS::Rooted
on it.