| 218 | namespace imp { |
| 219 | |
| 220 | static |
| 221 | void FunctionCallbackWrapper(const v8::FunctionCallbackInfo<v8::Value> &info) { |
| 222 | v8::Local<v8::Object> obj = info.Data().As<v8::Object>(); |
| 223 | FunctionCallback callback = reinterpret_cast<FunctionCallback>( |
| 224 | reinterpret_cast<intptr_t>( |
| 225 | Nan::GetExternalValue(obj->GetInternalField(kFunctionIndex) |
| 226 | .As<v8::Value>().As<v8::External>()))); |
| 227 | FunctionCallbackInfo<v8::Value> |
| 228 | cbinfo(info, obj->GetInternalField(kDataIndex).As<v8::Value>()); |
| 229 | callback(cbinfo); |
| 230 | } |
| 231 | |
| 232 | typedef void (*NativeFunction)(const v8::FunctionCallbackInfo<v8::Value> &); |
| 233 |
nothing calls this directly
no test coverage detected