| 4874 | template <typename T> |
| 4875 | template <typename InstanceWrap<T>::InstanceSetterCallback method> |
| 4876 | inline napi_value InstanceWrap<T>::WrappedMethod( |
| 4877 | napi_env env, napi_callback_info info) NAPI_NOEXCEPT { |
| 4878 | return details::WrapCallback(env, [&] { |
| 4879 | const CallbackInfo cbInfo(env, info); |
| 4880 | T* instance = T::Unwrap(cbInfo.This().As<Object>()); |
| 4881 | if (instance) (instance->*method)(cbInfo, cbInfo[0]); |
| 4882 | return nullptr; |
| 4883 | }); |
| 4884 | } |
| 4885 | |
| 4886 | //////////////////////////////////////////////////////////////////////////////// |
| 4887 | // ObjectWrap<T> class |
nothing calls this directly
no test coverage detected