Skip to content

napi_create_int32 does not return napi_pending_exception #356

Closed
@GiedriusM

Description

@GiedriusM

I noticed that napi_create_int32 (and other "Functions to convert from C types to N-API") do not return napi_pending_exception when one is actually present, however napi_create_buffer (and other "Object Creation Functions") do.

Is this inconsistency intended? According to this old post it should not (napi_create_number is checked as well as napi_create_buffer). Could not find any newer information, though.

Got really confused when the code started failing in the middle or variable creation :/

Metadata

Metadata

Assignees

No one assigned

    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