| 150 | |
| 151 | template <typename T, Napi::Value (*method)(const Napi::CallbackInfo&)> |
| 152 | napi_property_descriptor PrototypeSymbolMethod(Napi::Symbol symbol, Addon* addon) { |
| 153 | napi_property_descriptor desc = {}; |
| 154 | desc.name = symbol; |
| 155 | desc.method = TypeSafeCallback<T, method>; |
| 156 | desc.attributes = DEFAULT_ATTRIBUTES; |
| 157 | desc.data = addon; |
| 158 | return desc; |
| 159 | } |
| 160 | |
| 161 | // Defines a getter as an own property of the given object. V8 exposed these |
| 162 | // getters as native data properties on each instance, which made them visible |
nothing calls this directly
no outgoing calls
no test coverage detected