Skip to content

Introduce status napi_cannot_call_into_js #30327

Closed
@gabrielschulhof

Description

@gabrielschulhof

napi_call_function() and other N-APIs that use NAPI_PREAMBLE() return napi_pending_exception when env->can_call_into_js() is no longer true. We should distinguish between a pending exception and an inability to call into JS.

Re: nodejs/node-addon-api#591

Metadata

Metadata

Assignees

No one assigned

    Labels

    node-apiIssues and PRs related to the Node-API.node-api-semver-majorsemver-major changes that need to be considered for N-API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions