Skip to content

Add a direct API for setting object prototype in node_api.h #60670

Description

@ruochenjia

What is the problem this feature will solve?

See nodejs/node-addon-api#1691

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

Create a new API function napi_set_prototype in node_api.h to provide a NAPI equivalent for v8::Object::SetPrototype.

What alternatives have you considered?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.node-apiIssues and PRs related to Node-API.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions