| 51 | } |
| 52 | |
| 53 | inline Napi::Object SafeConstruct(Napi::Env env, Napi::Function constructor) { |
| 54 | napi_value result; |
| 55 | if (napi_new_instance(env, constructor, 0, NULL, &result) != napi_ok) return Napi::Object(); |
| 56 | return Napi::Object(env, result); |
| 57 | } |
| 58 | |
| 59 | inline Napi::Value SafeGet(Napi::Env env, Napi::Object obj, napi_value key) { |
| 60 | napi_value result; |
no outgoing calls
no test coverage detected