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

Function HasPropertyWithNapiWrapperValue

test/object/has_property.cc:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13Value HasPropertyWithNapiWrapperValue(const CallbackInfo& info) {
14 Object obj = info[0].UnsafeAs<Object>();
15 Name key = info[1].As<Name>();
16 return Boolean::New(info.Env(), MaybeUnwrapOr(obj.Has(key), false));
17}
18
19Value HasPropertyWithCStyleString(const CallbackInfo& info) {
20 Object obj = info[0].UnsafeAs<Object>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
HasMethod · 0.80

Tested by

no test coverage detected