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

Function GetPropertyWithNapiWrapperValue

test/object/get_property.cc:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12Value GetPropertyWithNapiWrapperValue(const CallbackInfo& info) {
13 Object obj = info[0].UnsafeAs<Object>();
14 Name key = info[1].As<Name>();
15 return MaybeUnwrapOr(obj.Get(key), Value());
16}
17
18Value GetPropertyWithUint32(const CallbackInfo& info) {
19 Object obj = info[0].UnsafeAs<Object>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
GetMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected