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

Method Wrap

nan_object_wrap.h:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51 protected:
52 inline void Wrap(v8::Local<v8::Object> object) {
53 assert(persistent().IsEmpty());
54 assert(object->InternalFieldCount() > 0);
55 SetInternalFieldPointer(object, 0, this);
56 persistent().Reset(object);
57 MakeWeak();
58 }
59
60#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
61 (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))

Callers 10

NAN_METHODFunction · 0.80
NAN_METHODMethod · 0.80
NAN_METHODMethod · 0.80
NAN_METHODFunction · 0.80
NAN_METHODFunction · 0.80
NAN_METHODFunction · 0.80
NAN_METHODFunction · 0.80
NAN_METHODFunction · 0.80
NAN_METHODFunction · 0.80
NAN_METHODMethod · 0.80

Calls 3

SetInternalFieldPointerFunction · 0.85
IsEmptyMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected