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

Method WeakCallback

nan_object_wrap.h:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
121
122 static void
123 WeakCallback(v8::WeakCallbackInfo<ObjectWrap> const& info) {
124 ObjectWrap* wrap = info.GetParameter();
125 assert(wrap->refs_ == 0);
126 wrap->handle_.Reset();
127 delete wrap;
128 }
129
130#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
131

Callers

nothing calls this directly

Calls 3

GetParameterMethod · 0.80
IsNearDeathMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected