| 56 | } |
| 57 | |
| 58 | v8::Local<v8::Value> NamedInterceptor::NewInstance () { |
| 59 | EscapableHandleScope scope; |
| 60 | v8::Local<v8::FunctionTemplate> constructorHandle = |
| 61 | Nan::New(namedinterceptors_constructor); |
| 62 | v8::Local<v8::Object> instance = |
| 63 | Nan::NewInstance(GetFunction(constructorHandle).ToLocalChecked()) |
| 64 | .ToLocalChecked(); |
| 65 | return scope.Escape(instance); |
| 66 | } |
| 67 | |
| 68 | NAN_METHOD(NamedInterceptor::New) { |
| 69 | NamedInterceptor* interceptor = new NamedInterceptor(); |
nothing calls this directly
no test coverage detected