| 21 | } |
| 22 | |
| 23 | class SetterGetter : public ObjectWrap { |
| 24 | public: |
| 25 | static NAN_MODULE_INIT(Init); |
| 26 | static v8::Local<v8::Value> NewInstance (); |
| 27 | static NAN_METHOD(New); |
| 28 | static NAN_METHOD(Log); |
| 29 | static NAN_GETTER(GetProp1); |
| 30 | static NAN_GETTER(GetProp2); |
| 31 | static NAN_SETTER(SetProp2); |
| 32 | |
| 33 | SetterGetter(); |
| 34 | |
| 35 | char log[1024]; |
| 36 | char prop1[256]; |
| 37 | char prop2[256]; |
| 38 | }; |
| 39 | |
| 40 | static Persistent<v8::FunctionTemplate> settergetter_constructor; |
| 41 |
nothing calls this directly
no outgoing calls
no test coverage detected