1. NAPI_EXTERN napi_status
    2. napi_close_escapable_handle_scope(napi_env env,
    3. napi_handle_scope scope);
    • [in] env: The environment that the API is invoked under.
    • [in] scope: napi_value representing the scope to be closed.

    Returns napi_ok if the API succeeded.

    This API closes the scope passed in. Scopes must be closed in the reverse order from which they were created.

    This API can be called even if there is a pending JavaScript exception.