Skip to content

Commit

Permalink
fix PropertySetter signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Aug 26, 2024
1 parent cb486b0 commit 6828015
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nan_callbacks_12_inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static
v8::Intercepted PropertySetterCallbackWrapper(
v8::Local<v8::Name> property
, v8::Local<v8::Value> value
, const v8::PropertyCallbackInfo<v8::Value> &info) {
, const v8::PropertyCallbackInfo<void> &info) {
v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
PropertyCallbackInfo<v8::Value>
cbinfo(info, obj->GetInternalField(kDataIndex).As<v8::Value>());
Expand All @@ -356,7 +356,7 @@ v8::Intercepted PropertySetterCallbackWrapper(
typedef v8::Intercepted (*NativePropertySetter)(
v8::Local<v8::Name>
, v8::Local<v8::Value>
, const v8::PropertyCallbackInfo<v8::Value> &);
, const v8::PropertyCallbackInfo<void> &);
#else
static
void PropertySetterCallbackWrapper(
Expand Down Expand Up @@ -622,7 +622,7 @@ static
v8::Intercepted IndexSetterCallbackWrapper(
uint32_t index
, v8::Local<v8::Value> value
, const v8::PropertyCallbackInfo<v8::Value> &info) {
, const v8::PropertyCallbackInfo<void> &info) {
v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
PropertyCallbackInfo<v8::Value>
cbinfo(info, obj->GetInternalField(kDataIndex).As<v8::Value>());
Expand All @@ -640,7 +640,7 @@ v8::Intercepted IndexSetterCallbackWrapper(
typedef v8::Intercepted (*NativeIndexSetter)(
uint32_t
, v8::Local<v8::Value>
, const v8::PropertyCallbackInfo<v8::Value> &);
, const v8::PropertyCallbackInfo<void> &);
#else
static
void IndexSetterCallbackWrapper(
Expand Down

0 comments on commit 6828015

Please sign in to comment.