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

Function IndexQueryCallbackWrapper

nan_callbacks_12_inl.h:678–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676 (uint32_t, const v8::PropertyCallbackInfo<v8::Boolean> &);
677
678static
679v8::Intercepted IndexQueryCallbackWrapper(
680 uint32_t index, const v8::PropertyCallbackInfo<v8::Integer> &info) {
681 v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
682 PropertyCallbackInfo<v8::Integer>
683 cbinfo(info, obj->GetInternalField(kDataIndex).As<v8::Value>());
684 IndexQueryCallback callback = reinterpret_cast<IndexQueryCallback>(
685 reinterpret_cast<intptr_t>(
686 Nan::GetExternalValue(obj->GetInternalField(kIndexPropertyQueryIndex)
687 .As<v8::Value>().As<v8::External>())));
688 return callback(index, cbinfo);
689}
690
691typedef v8::Intercepted (*NativeIndexQuery)
692 (uint32_t, const v8::PropertyCallbackInfo<v8::Integer> &);

Callers

nothing calls this directly

Calls 3

callbackFunction · 0.85
GetInternalFieldMethod · 0.80
GetExternalValueFunction · 0.70

Tested by

no test coverage detected