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

Method Unwrap

napi-inl.h:582–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
581template <class T>
582T Maybe<T>::Unwrap() const {
583 NAPI_CHECK(IsJust(), "Napi::Maybe::Unwrap", "Maybe value is Nothing.");
584 return _value;
585}
586
587template <class T>
588T Maybe<T>::UnwrapOr(const T& default_value) const {

Callers 12

operator==Method · 0.80
ValueFunction · 0.80
napi-inl.hFile · 0.80
ThenMethod · 0.80
CatchMethod · 0.80
GetMethod · 0.80
operator()Method · 0.80
CallMethod · 0.80
MakeCallbackMethod · 0.80
NewMethod · 0.80
NormalJsCallbackFunction · 0.80
MaybeUnwrapFunction · 0.80

Calls 1

EnvMethod · 0.80

Tested by 1

MaybeUnwrapFunction · 0.64