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

Function HasOwnPropertyWithCppStyleString

test/object/has_own_property.cc:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29Value HasOwnPropertyWithCppStyleString(const CallbackInfo& info) {
30 Object obj = info[0].UnsafeAs<Object>();
31 String jsKey = info[1].As<String>();
32 return Boolean::New(
33 info.Env(), MaybeUnwrapOr(obj.HasOwnProperty(jsKey.Utf8Value()), false));
34}

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
HasOwnPropertyMethod · 0.80

Tested by

no test coverage detected