Re: [v8-users] keeping wrapped objects alive

2018-05-10 Thread Ben Noordhuis
On Tue, May 8, 2018 at 9:13 PM, ibon wrote: > What about the v8::Private::ForAPI stuff ? Is it recommended despite being > experimental, or should I avoid it ? I'd say it's fine. "Experimental" in this case means the API can change, not that it's known to be buggy. -- -- v8-users mailing list

Re: [v8-users] keeping wrapped objects alive

2018-05-08 Thread ibon
oh, I see. Yes, tried ClearWeak/SetWeak, and worked as expected, thanks a lot !! What about the v8::Private::ForAPI stuff ? Is it recommended despite being experimental, or should I avoid it ? Thanks. El martes, 8 de mayo de 2018, 9:35:59 (UTC+2), Ben Noordhuis escribió: > > On Tue, May 8, 201

Re: [v8-users] keeping wrapped objects alive

2018-05-08 Thread Ben Noordhuis
On Tue, May 8, 2018 at 1:19 AM, ibon wrote: > For my embedding needs, sometimes i need to keep a native wrapped object > alive. > Normally, I set a Persistent ref where i install a finalisation callback > with custom wrapper class is. This gives me fine control of all native > wrapped objects at I