napi_open_escapable_handle_scope
functionv1js_native_api.hThis API opens a new scope from which one object can be promoted to the outer scope.
NAPI_EXTERN napi_status
napi_open_escapable_handle_scope(napi_env env,
napi_handle_scope* result);
[in] env: The environment that the API is invoked under.[out] result:napi_valuerepresenting the new scope.
Returns napi_ok if the API succeeded.
This API opens a new scope from which one object can be promoted to the outer scope.