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

Function DeletePropertyWithCStyleString

test/object/delete_property.cc:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26Value DeletePropertyWithCStyleString(const CallbackInfo& info) {
27 Object obj = info[0].UnsafeAs<Object>();
28 String jsKey = info[1].As<String>();
29 return Boolean::New(
30 info.Env(), MaybeUnwrapOr(obj.Delete(jsKey.Utf8Value().c_str()), false));
31}
32
33Value DeletePropertyWithCppStyleString(const CallbackInfo& info) {
34 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