| 12 | using namespace Nan; // NOLINT(build/namespaces) |
| 13 | |
| 14 | class 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 | |
| 30 | static Persistent<v8::FunctionTemplate> namedinterceptors_constructor; |
| 31 |
nothing calls this directly
no outgoing calls
no test coverage detected