| 140 | |
| 141 | template <typename T, Napi::Value (*method)(const Napi::CallbackInfo&)> |
| 142 | napi_property_descriptor PrototypeMethod(const char* name, Addon* addon) { |
| 143 | napi_property_descriptor desc = {}; |
| 144 | desc.utf8name = name; |
| 145 | desc.method = TypeSafeCallback<T, method>; |
| 146 | desc.attributes = DEFAULT_ATTRIBUTES; |
| 147 | desc.data = addon; |
| 148 | return desc; |
| 149 | } |
| 150 | |
| 151 | template <typename T, Napi::Value (*method)(const Napi::CallbackInfo&)> |
| 152 | napi_property_descriptor PrototypeSymbolMethod(Napi::Symbol symbol, Addon* addon) { |
nothing calls this directly
no outgoing calls
no test coverage detected