MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / Reject

Method Reject

napi-inl.h:2971–2974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2969}
2970
2971inline void Promise::Deferred::Reject(napi_value value) const {
2972 napi_status status = napi_reject_deferred(_env, _deferred, value);
2973 NAPI_THROW_IF_FAILED_VOID(_env, status);
2974}
2975
2976inline void Promise::CheckCast(napi_env env, napi_value value) {
2977 NAPI_CHECK(value != nullptr, "Promise::CheckCast", "empty value");

Callers 4

OnErrorMethod · 0.80
RejectPromiseFunction · 0.80
CatchMethodFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected