You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure that no native instance pointer is associated with the
JavaScript object under construction if the native constructor causes a
JavaScript exception to be thrown.
Two different cases must be taken into consideration:
1. The exception in the constructor was caused by
`ObjectWrap<T>::ObjectWrap` when the call to `napi_wrap()` failed.
2. The exception in the constructor was caused by the constructor of
the subclass of `ObjectWrap<T>` after `napi_wrap()` was already
successful.
Fixes: #599
Co-authored-by: blagoev <lubo@blagoev.com>
PR-URL: #600
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
0 commit comments