Skip to content

Commit 1201d5f

Browse files
committed
updating docs to reflect SetAccessor method changes
1 parent 3e7644b commit 1201d5f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

doc/methods.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,13 @@ bool SetAccessor(v8::Local<v8::Object> obj,
534534
v8::AccessControl settings = v8::DEFAULT,
535535
v8::PropertyAttribute attribute = v8::None)
536536
// Starting from v8 14.2 new enum is used
537+
void SetAccessor(v8::Local<v8::ObjectTemplate> tpl,
538+
v8::Local<v8::String> name,
539+
Nan::GetterCallback getter,
540+
Nan::SetterCallback setter = 0,
541+
v8::Local<v8::Value> data = v8::Local<v8::Value>(),
542+
enum Nan::AccessControl settings = DEFAULT,
543+
v8::PropertyAttribute attribute = v8::None);
537544
bool SetAccessor(v8::Local<v8::Object> obj,
538545
v8::Local<v8::String> name,
539546
Nan::GetterCallback getter,

0 commit comments

Comments
 (0)