error handling
nickdesaulniers opened this issue · comments
Nick Desaulniers (paternity leave) commented
in the case where a strong reference cannot be obtained, there is no signaling to the caller that the object was gc'ed.
The check if (!strongref)
will fail if the gc happens to run between statements (is that possible in node?)
some ideas on lack of strongref, either:
- call the callback, with the first arg an error obj (with
this
possibly set tonull
) - return a Boolean from finalize
- throw an Error