| 84 | } |
| 85 | |
| 86 | NAN_PROPERTY_SETTER(NamedInterceptor::PropertySetter) { |
| 87 | NamedInterceptor* interceptor = |
| 88 | ObjectWrap::Unwrap<NamedInterceptor>(info.Holder()); |
| 89 | if (!std::strcmp(*Nan::Utf8String(property), "prop")) { |
| 90 | std::strncpy( |
| 91 | interceptor->buf |
| 92 | , *Nan::Utf8String(value) |
| 93 | , sizeof (interceptor->buf)); |
| 94 | info.GetReturnValue().Set(info.This()); |
| 95 | } else { |
| 96 | info.GetReturnValue().Set(info.This()); |
| 97 | } |
| 98 | return Intercepted::Yes(); |
| 99 | } |
| 100 | |
| 101 | NAN_PROPERTY_ENUMERATOR(NamedInterceptor::PropertyEnumerator) { |
| 102 | v8::Local<v8::Array> arr = Nan::New<v8::Array>(); |
nothing calls this directly
no test coverage detected