MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / ConstructorFromObject

Function ConstructorFromObject

test/object/object.cc:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92Value ConstructorFromObject(const CallbackInfo& info) {
93 auto env = info.Env();
94 Object object = info[0].As<Object>();
95 return Object(env, object);
96}
97
98Array GetPropertyNames(const CallbackInfo& info) {
99 Object obj = info[0].As<Object>();

Callers

nothing calls this directly

Calls 2

ObjectClass · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected