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

Function HasPropertyWithCppStyleString

test/object/has_property.cc:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Value HasPropertyWithCppStyleString(const CallbackInfo& info) {
34 Object obj = info[0].UnsafeAs<Object>();
35 String jsKey = info[1].As<String>();
36 return Boolean::New(info.Env(),
37 MaybeUnwrapOr(obj.Has(jsKey.Utf8Value()), false));
38}

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
HasMethod · 0.80

Tested by

no test coverage detected