MCPcopy Create free account
hub / github.com/nodejs/nan / SetterGetter

Class SetterGetter

test/cpp/accessors.cpp:14–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace Nan; // NOLINT(build/namespaces)
13
14class 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
31static Persistent<v8::FunctionTemplate> settergetter_constructor;
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected