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

Function NAN_INDEX_QUERY

test/cpp/indexedinterceptors.cpp:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116NAN_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
128NODE_MODULE(indexedinterceptors, IndexedInterceptor::Init)

Callers

nothing calls this directly

Calls 4

YesFunction · 0.85
NewFunction · 0.50
SetMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected