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

Function DeletePropertyWithCppStyleString

test/object/delete_property.cc:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Value DeletePropertyWithCppStyleString(const CallbackInfo& info) {
34 Object obj = info[0].UnsafeAs<Object>();
35 String jsKey = info[1].As<String>();
36 return Boolean::New(info.Env(),
37 MaybeUnwrapOr(obj.Delete(jsKey.Utf8Value()), false));
38}

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
DeleteMethod · 0.80

Tested by

no test coverage detected