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

Function DeletePropertyWithNapiWrapperValue

test/object/delete_property.cc:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20Value DeletePropertyWithNapiWrapperValue(const CallbackInfo& info) {
21 Object obj = info[0].UnsafeAs<Object>();
22 Name key = info[1].As<Name>();
23 return Boolean::New(info.Env(), MaybeUnwrapOr(obj.Delete(key), false));
24}
25
26Value DeletePropertyWithCStyleString(const CallbackInfo& info) {
27 Object obj = info[0].UnsafeAs<Object>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
DeleteMethod · 0.80

Tested by

no test coverage detected