| 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) |
no outgoing calls
no test coverage detected