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

Function DeletePropertyWithUint32

test/object/delete_property.cc:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace Napi;
5
6Value DeletePropertyWithUint32(const CallbackInfo& info) {
7 Object obj = info[0].UnsafeAs<Object>();
8 Number key = info[1].As<Number>();
9 return Boolean::New(info.Env(), MaybeUnwrap(obj.Delete(key.Uint32Value())));
10}
11
12Value DeletePropertyWithNapiValue(const CallbackInfo& info) {
13 Object obj = info[0].UnsafeAs<Object>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80
DeleteMethod · 0.80

Tested by

no test coverage detected