napi_open_escapable_handle_scope
NAPI_EXTERN napi_status
napi_open_escapable_handle_scope(napi_env env,
napi_handle_scope* result); [in] env:API 被调用时所处的环境。[out] result:napi_value表示新的范围。
如果 API 成功,则返回 napi_ok。
🌐 Returns napi_ok if the API succeeded.
这个 API 打开一个新的作用域,从中可以将一个对象提升到外部作用域。
🌐 This API opens a new scope from which one object can be promoted to the outer scope.