{"action":"closed","issue":{"url":"https://api.github.com/repos/nodejs/nan/issues/381","labels_url":"https://api.github.com/repos/nodejs/nan/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/nan/issues/381/comments","events_url":"https://api.github.com/repos/nodejs/nan/issues/381/events","html_url":"https://github.com/nodejs/nan/issues/381","id":96022035,"number":381,"title":"NAN_PROPERTY_SETTER signature mismatch","user":{"login":"DuBistKomisch","id":703055,"avatar_url":"https://avatars.githubusercontent.com/u/703055?v=3","gravatar_id":"","url":"https://api.github.com/users/DuBistKomisch","html_url":"https://github.com/DuBistKomisch","followers_url":"https://api.github.com/users/DuBistKomisch/followers","following_url":"https://api.github.com/users/DuBistKomisch/following{/other_user}","gists_url":"https://api.github.com/users/DuBistKomisch/gists{/gist_id}","starred_url":"https://api.github.com/users/DuBistKomisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuBistKomisch/subscriptions","organizations_url":"https://api.github.com/users/DuBistKomisch/orgs","repos_url":"https://api.github.com/users/DuBistKomisch/repos","events_url":"https://api.github.com/users/DuBistKomisch/events{/privacy}","received_events_url":"https://api.github.com/users/DuBistKomisch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-20T09:18:59Z","updated_at":"2015-07-20T12:40:10Z","closed_at":"2015-07-20T12:40:10Z","body":"Hi, I'm developing a native extension in Node 0.12.7 (from NodeSource PPA on Debian Jessie) using nan 0.8.4. I get the following error when trying to use `NAN_PROPERTY_SETTER` with `SetAccessor`:\r\n\r\n```\r\nerror: invalid conversion from ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&)’ to ‘v8::AccessorSetterCallback {aka void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)}’ [-fpermissive]\r\n```\r\n\r\nThe relevant code is:\r\n\r\n```\r\n// VideoPlayer.h:\r\nclass VideoPlayer : public node::ObjectWrap\r\n[...]\r\nstatic NAN_PROPERTY_GETTER(GetPosition);\r\nstatic NAN_PROPERTY_SETTER(SetPosition);\r\n\r\n// VideoPlayer.cpp:\r\nLocal<FunctionTemplate> tpl = NanNew<FunctionTemplate>(New);\r\n[...]\r\ntpl->InstanceTemplate()->SetAccessor(NanNew<String>(\"position\"), GetPosition, SetPosition);\r\n```\r\n\r\nThe getter works fine, and I have other properties which only have a getter and no setter which work fine. If I manually define the method signature as the error says, it compiles and works, so this seems to be a bug in nan."}}