| 7 | class TestAddon : public Napi::Addon<TestAddon> { |
| 8 | public: |
| 9 | inline TestAddon(Napi::Env env, Napi::Object exports) { |
| 10 | DefineAddon( |
| 11 | exports, |
| 12 | {InstanceMethod("increment", &TestAddon::Increment), |
| 13 | InstanceValue( |
| 14 | "subObject", |
| 15 | DefineProperties( |
| 16 | Napi::Object::New(env), |
| 17 | {InstanceMethod("decrement", &TestAddon::Decrement)}))}); |
| 18 | } |
| 19 | |
| 20 | ~TestAddon() { fprintf(stderr, "TestAddon::~TestAddon\n"); } |
| 21 |
nothing calls this directly
no test coverage detected