MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / SafeGet

Function SafeGet

src/util/helpers.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59inline Napi::Value SafeGet(Napi::Env env, Napi::Object obj, napi_value key) {
60 napi_value result;
61 if (napi_get_property(env, obj, key, &result) != napi_ok) return Napi::Value();
62 return Napi::Value(env, result);
63}
64
65inline Napi::Value SafeGetElement(Napi::Env env, Napi::Object obj, uint32_t index) {
66 napi_value result;

Callers 1

BindObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected