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

Function PropertyQueryCallbackWrapper

nan_callbacks_pre_12_inl.h:423–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421 (v8::Local<v8::String>, const v8::AccessorInfo &);
422
423static
424v8::Handle<v8::Integer> PropertyQueryCallbackWrapper(
425 v8::Local<v8::String> property, const v8::AccessorInfo &info) {
426 v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
427 PropertyCallbackInfo<v8::Integer>
428 cbinfo(info, obj->GetInternalField(kDataIndex));
429 PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
430 reinterpret_cast<intptr_t>(
431 obj->GetInternalField(kPropertyQueryIndex)
432 .As<v8::External>()->Value()));
433 callback(property, cbinfo);
434 return ReturnValueImp<v8::Integer>(cbinfo.GetReturnValue()).Value();
435}
436
437typedef v8::Handle<v8::Integer> (*NativePropertyQuery)
438 (v8::Local<v8::String>, const v8::AccessorInfo &);

Callers

nothing calls this directly

Calls 4

callbackFunction · 0.85
GetInternalFieldMethod · 0.80
ValueMethod · 0.80
GetReturnValueMethod · 0.45

Tested by

no test coverage detected