MCPcopy Create free account
hub / github.com/nodejs/nan / NewInstance

Method NewInstance

test/cpp/namedinterceptors.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58v8::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
68NAN_METHOD(NamedInterceptor::New) {
69 NamedInterceptor* interceptor = new NamedInterceptor();

Callers

nothing calls this directly

Calls 5

ToLocalCheckedMethod · 0.80
EscapeMethod · 0.80
NewFunction · 0.50
NewInstanceFunction · 0.50
GetFunctionFunction · 0.50

Tested by

no test coverage detected