| 424 | |
| 425 | |
| 426 | static |
| 427 | v8::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 | |
| 440 | typedef v8::Intercepted (*NativePropertyQuery) |
| 441 | (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Integer> &); |
nothing calls this directly
no test coverage detected