File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments