Skip to content

Commit

Permalink
fix: bump nmv version down, add dummy sig
Browse files Browse the repository at this point in the history
  • Loading branch information
VerteDinde authored and kkoopa committed Oct 10, 2022
1 parent 7f9ceb8 commit 888ed50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,7 @@ NAN_DEPRECATED inline void SetAccessor(
, obj
, settings
, attribute
#if (NODE_MODULE_VERSION < NODE_18_0_MODULE_VERSION)
#if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
, signature
#endif
);
Expand Down
6 changes: 4 additions & 2 deletions nan_callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ typedef void(*IndexQueryCallback)(
const PropertyCallbackInfo<v8::Integer>&);

namespace imp {
#if (NODE_MODULE_VERSION < NODE_18_0_MODULE_VERSION)
NAN_DEPRECATED typedef v8::Local<v8::AccessorSignature> Sig;
#if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
typedef v8::Local<v8::AccessorSignature> Sig;
#else
typedef v8::Local<v8::Data> Sig;
#endif

static const int kDataIndex = 0;
Expand Down

0 comments on commit 888ed50

Please sign in to comment.