napi_ref
这是用于引用 napi_value 的抽象。这允许用户管理 JavaScript 值的生命周期,包括显式定义它们的最短生命周期。
【This is the abstraction to use to reference a napi_value. This allows for
users to manage the lifetimes of JavaScript values, including defining their
minimum lifetimes explicitly.】
如需更多详情,请查阅 对象生命周期管理。
【For more details, review the Object lifetime management.】