| 113 | } |
| 114 | |
| 115 | NAN_PROPERTY_QUERY(NamedInterceptor::PropertyQuery) { |
| 116 | Nan::Utf8String s(property); |
| 117 | if (!std::strcmp(*s, "thing")) { |
| 118 | info.GetReturnValue().Set(Nan::New<v8::Integer>(v8::DontEnum)); |
| 119 | return Intercepted::Yes(); |
| 120 | } |
| 121 | if (!std::strcmp(*s, "value")) { |
| 122 | info.GetReturnValue().Set(Nan::New(0)); |
| 123 | return Intercepted::Yes(); |
| 124 | } |
| 125 | return Intercepted::Yes(); |
| 126 | } |
| 127 | |
| 128 | NODE_MODULE(namedinterceptors, NamedInterceptor::Init) |
nothing calls this directly
no test coverage detected