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

Method unwraptwofield

nan_weak.h:152–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151template<typename T>
152WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwraptwofield(
153 NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) {
154 WeakCallbackInfo<T> *cbinfo =
155 static_cast<WeakCallbackInfo<T>*>(data.GetInternalField(0));
156 cbinfo->isolate_ = data.GetIsolate();
157 return cbinfo;
158}
159
160#undef NAN_WEAK_PARAMETER_CALLBACK_SIG_
161#undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_

Callers

nothing calls this directly

Calls 2

GetInternalFieldMethod · 0.80
GetIsolateMethod · 0.45

Tested by

no test coverage detected