Skip to content

Commit 82944c4

Browse files
committed
Merge branch 'fix/electron-41'
2 parents 6d73808 + e985ff9 commit 82944c4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

nan_callbacks_12_inl.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,18 @@ class PropertyCallbackInfo {
159159

160160
inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); }
161161
inline v8::Local<v8::Value> Data() const { return data_; }
162+
#if defined(V8_MAJOR_VERSION) && \
163+
(V8_MAJOR_VERSION > 14 || \
164+
(V8_MAJOR_VERSION == 14 && \
165+
(defined(V8_MINOR_VERSION) && \
166+
(V8_MINOR_VERSION > 6 || \
167+
(V8_MINOR_VERSION == 6 && defined(V8_BUILD_NUMBER) && \
168+
V8_BUILD_NUMBER >= 40)))))
169+
inline v8::Local<v8::Object> Holder() const { return info_.HolderV2(); }
170+
#else
162171
inline v8::Local<v8::Object> This() const { return info_.This(); }
163172
inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
173+
#endif
164174
inline ReturnValue<T> GetReturnValue() const {
165175
return ReturnValue<T>(info_.GetReturnValue());
166176
}

0 commit comments

Comments
 (0)