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

Function HasOwnPropertyWithNapiWrapperValue

test/object/has_own_property.cc:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
HasOwnPropertyMethod · 0.80

Tested by

no test coverage detected