mmmagic icon indicating copy to clipboard operation
mmmagic copied to clipboard

Why use obj->Ref() ?

Open magicode opened this issue 9 years ago • 1 comments

I do not understand Why you use obj->Ref() in this line. https://github.com/mscdex/mmmagic/blob/master/src/binding.cc#L104 it will not be garbage collected.

Thanks.

magicode avatar Feb 24 '16 02:02 magicode

I believe it may be needed to keep the event loop alive IIRC?

mscdex avatar Feb 27 '18 20:02 mscdex