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

Method GetInternalField

nan_weak.h:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 inline v8::Isolate *GetIsolate() const { return isolate_; }
63 inline T *GetParameter() const { return static_cast<T*>(parameter_); }
64 inline void *GetInternalField(int index) const {
65 assert((index == 0 || index == 1) && "internal field index out of bounds");
66 if (index == 0) {
67 return internal_fields_[0];
68 } else {
69 return internal_fields_[1];
70 }
71 }
72
73 private:
74 NAN_DISALLOW_ASSIGN_COPY_MOVE(WeakCallbackInfo)

Calls

no outgoing calls

Tested by

no test coverage detected