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

Function PropertyEnumeratorCallbackWrapper

nan_callbacks_12_inl.h:390–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388#endif
389
390static
391void PropertyEnumeratorCallbackWrapper(
392 const v8::PropertyCallbackInfo<v8::Array> &info) {
393 v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
394 PropertyCallbackInfo<v8::Array>
395 cbinfo(info, obj->GetInternalField(kDataIndex).As<v8::Value>());
396 PropertyEnumeratorCallback callback =
397 reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
398 Nan::GetExternalValue(obj->GetInternalField(kPropertyEnumeratorIndex)
399 .As<v8::Value>().As<v8::External>())));
400 callback(cbinfo);
401}
402
403typedef void (*NativePropertyEnumerator)
404 (const v8::PropertyCallbackInfo<v8::Array> &);

Callers

nothing calls this directly

Calls 3

callbackFunction · 0.85
GetInternalFieldMethod · 0.80
GetExternalValueFunction · 0.70

Tested by

no test coverage detected