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

Function SafeHasOwnProperty

src/util/helpers.cpp:72–74  ·  view source on GitHub ↗

Returns false if the check itself failed (leaving an exception pending).

Source from the content-addressed store, hash-verified

70
71// Returns false if the check itself failed (leaving an exception pending).
72inline bool SafeHasOwnProperty(Napi::Env env, Napi::Object obj, napi_value key, bool* result) {
73 return napi_has_own_property(env, obj, key, result) == napi_ok;
74}
75
76Napi::Value ThrowError(Napi::Env env, const char* message) {
77 Napi::Error::New(env, message).ThrowAsJavaScriptException();

Callers 1

BindObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected