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