| 64 | class MyObject : public ObjectWrap { |
| 65 | public: |
| 66 | static NAN_MODULE_INIT(Init) { |
| 67 | v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New); |
| 68 | tpl->InstanceTemplate()->SetInternalFieldCount(1); |
| 69 | |
| 70 | SetPrototypeMethod(tpl, "getValue", GetValue); |
| 71 | SetPrototypeMethod(tpl, "newInnerObject", NewInnerObject); |
| 72 | |
| 73 | constructor().Reset(GetFunction(tpl).ToLocalChecked()); |
| 74 | } |
| 75 | |
| 76 | static NAN_METHOD(NewInstance) { |
| 77 | v8::Local<v8::Function> cons = Nan::New(constructor()); |
nothing calls this directly
no test coverage detected