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

Method NewInstance

test/cpp/wrappedobjectfactory.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 static
27 v8::Local<v8::Object> NewInstance(int argc, v8::Local<v8::Value> argv[]) {
28 v8::Local<v8::Function> cons = Nan::New(constructor());
29 return Nan::NewInstance(cons, argc, argv).ToLocalChecked();
30 }
31
32 private:
33 explicit InnerObject(double value = 0) : value_(value) {}

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
NewFunction · 0.50
NewInstanceFunction · 0.50

Tested by

no test coverage detected