| 47 | } |
| 48 | |
| 49 | v8::Local<v8::Value> SetterGetter::NewInstance () { |
| 50 | EscapableHandleScope scope; |
| 51 | v8::Local<v8::FunctionTemplate> constructorHandle = |
| 52 | Nan::New(settergetter_constructor); |
| 53 | v8::Local<v8::Object> instance = |
| 54 | Nan::NewInstance( |
| 55 | Nan::GetFunction(constructorHandle).ToLocalChecked()).ToLocalChecked(); |
| 56 | return scope.Escape(instance); |
| 57 | } |
| 58 | |
| 59 | NAN_METHOD(SetterGetter::New) { |
| 60 | std::string datavalue = *Nan::Utf8String(info.Data()); |
nothing calls this directly
no test coverage detected