MCPcopy Create free account
hub / github.com/nodejs/nan / GetFromPersistent

Method GetFromPersistent

nan.h:2060–2065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2058 }
2059
2060 inline v8::Local<v8::Value> GetFromPersistent(const char *key) const {
2061 EscapableHandleScope scope;
2062 return scope.Escape(
2063 Get(New(persistentHandle), New(key).ToLocalChecked())
2064 .FromMaybe(v8::Local<v8::Value>()));
2065 }
2066
2067 inline v8::Local<v8::Value>
2068 GetFromPersistent(const v8::Local<v8::String> &key) const {

Callers

nothing calls this directly

Calls 5

EscapeMethod · 0.80
ToLocalCheckedMethod · 0.80
GetFunction · 0.70
NewFunction · 0.70
FromMaybeMethod · 0.45

Tested by

no test coverage detected