Re: Assertion failure on debug, what is wrong?
Mihai Dobrescu <[email protected]> Tue, 30 Aug 2016 22:16:25 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
On Monday, August 29, 2016 at 6:59:50 PM UTC+3, Boris Zbarsky wrote: > On 8/29/16 10:13 AM, Mihai Dobrescu wrote: > > But what if I need to make a class with a "global" member? > > Then you either use a PersistentRooted<JSObject*> member (if you want it > to be a permanent GC root until the class instance is destroyed) or a > Heap<JSObject*> and trace it if you want to participate in GC. > > -Boris If you're suggesting using JS::PersistentRootedObject, I don't get it working in debug, I got assertions failures all the time, what is the "protocol" using it in my case? Is there a consistent sample somewhere?