Skip to content

N-API: Add functions to delete properties #13924

Description

@mhdawson
  • Version: ALL
  • Platform: ALL
  • Subsystem: N-API

There should be NAPI functions for deleting named properties and indexed properties:

napi_status napi_delete_property(napi_env env, napi_value object, napi_propertyname name);
napi_status napi_delete_element(napi_env env, napi_value object, uint32_t i);

So far only one of the top native modules scanned (couchbase) referenced v8::Object::Delete().

The N-API team will get to this based on priorities, but this is a good place for others to contribute as well. If you start working on this, assign the issue to yourself and add a comment that you are working on it.

Activity

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

Metadata

Metadata

Assignees

Labels

node-apiIssues and PRs related to Node-API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions