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

Function GetPropertyWithUint32

test/object/get_property.cc:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18Value GetPropertyWithUint32(const CallbackInfo& info) {
19 Object obj = info[0].UnsafeAs<Object>();
20 Number key = info[1].As<Number>();
21 return MaybeUnwrap(obj.Get(key.Uint32Value()));
22}
23
24Value GetPropertyWithCStyleString(const CallbackInfo& info) {
25 Object obj = info[0].UnsafeAs<Object>();

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected