| 114 | } |
| 115 | |
| 116 | NAN_INDEX_QUERY(IndexedInterceptor::PropertyQuery) { |
| 117 | if (index == 1) { |
| 118 | info.GetReturnValue().Set(Nan::New<v8::Integer>(v8::DontEnum)); |
| 119 | return Intercepted::Yes(); |
| 120 | } |
| 121 | if (index == 42) { |
| 122 | info.GetReturnValue().Set(Nan::New(0)); |
| 123 | return Intercepted::Yes(); |
| 124 | } |
| 125 | return Intercepted::Yes(); |
| 126 | } |
| 127 | |
| 128 | NODE_MODULE(indexedinterceptors, IndexedInterceptor::Init) |
nothing calls this directly
no test coverage detected