MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / Reset

Method Reset

napi-inl.h:3760–3766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3758
3759template <typename T>
3760inline void Reference<T>::Reset() {
3761 if (_ref != nullptr) {
3762 napi_status status = napi_delete_reference(_env, _ref);
3763 NAPI_THROW_IF_FAILED_VOID(_env, status);
3764 _ref = nullptr;
3765 }
3766}
3767
3768template <typename T>
3769inline void Reference<T>::Reset(const T& value, uint32_t refcount) {

Callers 15

ReferenceResetTestsFunction · 0.80
TestWorkerWithNoCbMethod · 0.80
TestWorkerMethod · 0.80
CallWithVectorArgsFunction · 0.80
CallWithInitListFunction · 0.80
CallWithRecvInitListFunction · 0.80
CallWithRecvVectorFunction · 0.80
CallWithRecvArgcFunction · 0.80

Calls 1

EnvMethod · 0.80

Tested by 4

TestWorkerWithNoCbMethod · 0.64
TestWorkerMethod · 0.64
TestWorkerWithNoCbMethod · 0.64
TestWorkerMethod · 0.64