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