MCPcopy Create free account
hub / github.com/nodejs/nan / invoketwofield

Method invoketwofield

nan_weak.h:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128template<typename T>
129template<bool isFirstPass>
130void
131WeakCallbackInfo<T>::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) {
132 WeakCallbackInfo<T> *cbinfo = unwraptwofield(data);
133 if (isFirstPass) {
134 cbinfo->persistent_.Reset();
135 data.SetSecondPassCallback(invoketwofield<false>);
136 } else {
137 cbinfo->callback_(*cbinfo);
138 delete cbinfo;
139 }
140}
141
142template<typename T>
143WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrapparameter(

Callers

nothing calls this directly

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected