Skip to content

Clarify behaviour of napi_throw() #309

@gabrielschulhof

Description

@gabrielschulhof

The document says that napi_throw() throws an Error provided. Is it
necessary for it to be an Error, or can you throw any value? You should be
allowed to throw any value, I should think.

Re: nodejs/node#14256

Metadata

Metadata

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