Skip to content

Allow napi_add_finalizer to work on primitive types #48311

@gabrielschulhof

Description

@gabrielschulhof

What is the problem this feature will solve?

We may want to have feature parity with napi_create_reference, since, internally, both create a reference.

@nodejs/node-api WDYT?

What is the feature you are proposing to solve the problem?

Open up napi_add_finalizer to primitive types.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.node-apiIssues and PRs related to the Node-API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions