| 15 | class InnerObject : public ObjectWrap { |
| 16 | public: |
| 17 | static NAN_MODULE_INIT(Init) { |
| 18 | v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New); |
| 19 | tpl->InstanceTemplate()->SetInternalFieldCount(1); |
| 20 | |
| 21 | SetPrototypeMethod(tpl, "getValue", GetValue); |
| 22 | |
| 23 | constructor().Reset(GetFunction(tpl).ToLocalChecked()); |
| 24 | } |
| 25 | |
| 26 | static |
| 27 | v8::Local<v8::Object> NewInstance(int argc, v8::Local<v8::Value> argv[]) { |
nothing calls this directly
no test coverage detected