Skip to content

Commit

Permalink
docs: SetAccessor lost the signature parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Oct 10, 2022
1 parent def8ed5 commit 43e612d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,22 @@ Sets getters and setters for a property with a given name on an `ObjectTemplate`
Signature:

```c++
void SetAccessor(v8::Local<v8::ObjectTemplate> tpl,
// The signature parameter was deprecated in Node 16 and subsequently removed
NAN_DEPRECATED void SetAccessor(v8::Local<v8::ObjectTemplate> tpl,
v8::Local<v8::String> name,
Nan::GetterCallback getter,
Nan::SetterCallback setter = 0,
v8::Local<v8::Value> data = v8::Local<v8::Value>(),
v8::AccessControl settings = v8::DEFAULT,
v8::PropertyAttribute attribute = v8::None,
imp::Sig signature = imp::Sig());
void SetAccessor(v8::Local<v8::ObjectTemplate> tpl,
v8::Local<v8::String> name,
Nan::GetterCallback getter,
Nan::SetterCallback setter = 0,
v8::Local<v8::Value> data = v8::Local<v8::Value>(),
v8::AccessControl settings = v8::DEFAULT,
v8::PropertyAttribute attribute = v8::None);
bool SetAccessor(v8::Local<v8::Object> obj,
v8::Local<v8::String> name,
Nan::GetterCallback getter,
Expand Down

0 comments on commit 43e612d

Please sign in to comment.