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

Method SetterGetter

test/cpp/methodswithdata.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40static Persistent<v8::FunctionTemplate> settergetter_constructor;
41
42SetterGetter::SetterGetter() {
43 log[0] = '\0';
44 strncpy(prop1, "this is property 1", sizeof (prop1) - 1);
45 prop1[sizeof (prop1) - 1] = '\0';
46 prop2[0] = '\0';
47}
48
49v8::Local<v8::Value> SetterGetter::NewInstance () {
50 EscapableHandleScope scope;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected