| 12 | using namespace Nan; // NOLINT(build/namespaces) |
| 13 | |
| 14 | class SetterGetter : public ObjectWrap { |
| 15 | public: |
| 16 | static NAN_MODULE_INIT(Init); |
| 17 | static v8::Local<v8::Value> NewInstance (); |
| 18 | static NAN_METHOD(New); |
| 19 | static NAN_METHOD(Log); |
| 20 | static NAN_GETTER(GetProp1); |
| 21 | static NAN_GETTER(GetProp2); |
| 22 | static NAN_SETTER(SetProp2); |
| 23 | |
| 24 | SetterGetter(); |
| 25 | |
| 26 | char log[1024]; |
| 27 | char prop1[256]; |
| 28 | char prop2[256]; |
| 29 | }; |
| 30 | |
| 31 | static Persistent<v8::FunctionTemplate> settergetter_constructor; |
| 32 |
nothing calls this directly
no outgoing calls
no test coverage detected