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

Function PropertyQueryCallbackWrapper

nan_callbacks_12_inl.h:426–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424
425
426static
427v8::Intercepted PropertyQueryCallbackWrapper(
428 v8::Local<v8::Name> property
429 , const v8::PropertyCallbackInfo<v8::Integer> &info) {
430 v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
431 PropertyCallbackInfo<v8::Integer>
432 cbinfo(info, obj->GetInternalField(kDataIndex).As<v8::Value>());
433 PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
434 reinterpret_cast<intptr_t>(
435 Nan::GetExternalValue(obj->GetInternalField(kPropertyQueryIndex)
436 .As<v8::Value>().As<v8::External>())));
437 return callback(property.As<v8::String>(), cbinfo);
438}
439
440typedef v8::Intercepted (*NativePropertyQuery)
441 (v8::Local<v8::Name>, 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