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

Function InstanceOf

test/object/object.cc:340–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338#endif // NAPI_CPP_EXCEPTIONS
339
340Value InstanceOf(const CallbackInfo& info) {
341 Object obj = info[0].UnsafeAs<Object>();
342 Function constructor = info[1].As<Function>();
343 return Boolean::New(info.Env(), MaybeUnwrap(obj.InstanceOf(constructor)));
344}
345
346Value GetPrototype(const CallbackInfo& info) {
347 Object obj = info[0].UnsafeAs<Object>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80
InstanceOfMethod · 0.80

Tested by

no test coverage detected