Skip to content

node-api: napi_delete_reference should use node_api_basic_env #59583

@KevinEady

Description

@KevinEady

Since napi_delete_reference does not check that a environment is in GC, the function prototype should accept a node_api_basic_env instead of an napi_env.

napi_status NAPI_CDECL napi_delete_reference(napi_env env, napi_ref ref) {

Refs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    node-apiIssues and PRs related to the Node-API.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions