Skip to content

Specify when input pointers can be NULL #252

Closed
@RReverser

Description

@RReverser

For example, apparently (according to examples) it’s ok to pass NULL as thisArg and data to napi_get_cb_info if you don’t want to retrieve it, but this is not mentioned in the docs.

Some other places like napi_wrap mention “optional” explicitly for out params, might be a good idea to go through other functions too and explicitly specify when pointer is "optional" or when it must be non-NULL.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions