Skip to content

Optional Value Boxes #690

@legendecas

Description

@legendecas

Napi::Value can be empty. Many of N-API will return napi_invalid_arg on empty Napi::Value as a parameter (e.g. napi_get_property). We can introduce a Maybe value box to node-addon-api to early detect these conditions and provide a clean way to indicate whether a parameter Napi::Value is optional.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions