| 67 | } |
| 68 | |
| 69 | v8::Local<v8::Value> SetterGetter::NewInstance () { |
| 70 | EscapableHandleScope scope; |
| 71 | v8::Local<v8::FunctionTemplate> constructorHandle = |
| 72 | Nan::New(settergetter_constructor); |
| 73 | v8::Local<v8::Object> instance = |
| 74 | Nan::NewInstance( |
| 75 | Nan::GetFunction(constructorHandle).ToLocalChecked()).ToLocalChecked(); |
| 76 | return scope.Escape(instance); |
| 77 | } |
| 78 | |
| 79 | NAN_METHOD(SetterGetter::New) { |
| 80 | SetterGetter* settergetter = new SetterGetter(); |
no test coverage detected