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

Class NamedInterceptor

test/cpp/namedinterceptors.cpp:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace Nan; // NOLINT(build/namespaces)
13
14class NamedInterceptor : public ObjectWrap {
15 char buf[256];
16
17 public:
18 NamedInterceptor() { std::strncpy(this->buf, "foo", sizeof (this->buf)); }
19 static NAN_MODULE_INIT(Init);
20 static v8::Local<v8::Value> NewInstance ();
21 static NAN_METHOD(New);
22
23 static NAN_PROPERTY_GETTER(PropertyGetter);
24 static NAN_PROPERTY_SETTER(PropertySetter);
25 static NAN_PROPERTY_ENUMERATOR(PropertyEnumerator);
26 static NAN_PROPERTY_DELETER(PropertyDeleter);
27 static NAN_PROPERTY_QUERY(PropertyQuery);
28};
29
30static Persistent<v8::FunctionTemplate> namedinterceptors_constructor;
31

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected