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

Function HasPropertyWithUint32

test/object/has_property.cc:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26Value HasPropertyWithUint32(const CallbackInfo& info) {
27 Object obj = info[0].UnsafeAs<Object>();
28 Number jsKey = info[1].As<Number>();
29 return Boolean::New(info.Env(),
30 MaybeUnwrapOr(obj.Has(jsKey.Uint32Value()), false));
31}
32
33Value HasPropertyWithCppStyleString(const CallbackInfo& info) {
34 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