{{#def.members}}

{{~ getStaticPropertyMembers(it) :p:i }}

{{
var readAccessStr = p.readonly ? 'v8::ReadOnly' : 'v8::None';
}}
  Nan::SetAccessor(static_cast<v8::Local<v8::Object>>(function),
      Nan::New("{{=p.name}}").ToLocalChecked(),
      {{=p.name}}Getter,
      {{? !p.readonly }}{{=p.name}}Setter{{?? true}}nullptr{{?}},
      v8::Local<v8::Value>(),
      v8::DEFAULT,
      static_cast<v8::PropertyAttribute>({{=readAccessStr}}));
{{~}}
