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

Function Persistent

napi-inl.h:3799–3801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3797
3798template <typename T>
3799inline Reference<T> Persistent(T value) {
3800 return Reference<T>::New(value, 1);
3801}
3802
3803inline ObjectReference Persistent(Object value) {
3804 return Reference<Object>::New(value, 1);

Callers 15

AsyncWorkerMethod · 0.85
InitializeMethod · 0.85
InitMethod · 0.85
TestMethod · 0.85
InitObjectWrapFunction · 0.85
SetWithTempStringFunction · 0.85
SetObjectFunction · 0.85
SetCastedObjectsFunction · 0.85
TestMethod · 0.85
PostFinalizerFunction · 0.85
PostFinalizerWithDataFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestMethod · 0.68
TestMethod · 0.68