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

Function NAN_INDEX_ENUMERATOR

test/cpp/indexedinterceptors.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101NAN_INDEX_ENUMERATOR(IndexedInterceptor::PropertyEnumerator) {
102 v8::Local<v8::Array> arr = Nan::New<v8::Array>();
103 Set(arr, 0, Nan::New(42));
104 info.GetReturnValue().Set(arr);
105 return Intercepted::Yes();
106}
107
108NAN_INDEX_DELETER(IndexedInterceptor::PropertyDeleter) {
109 IndexedInterceptor* interceptor =

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected