Skip to content

Get napi_callback_info from Napi::CallbackInfo? #1234

Closed

Description

@erikjalevik

Is there no way to get hold of the wrapped napi_callback_info from a Napi::CallbackInfo?

I need to call a function that's been written to accept the C NAPI type from one written with node-addon-api's C++ classes.

Activity

  1. legendecas commented on Nov 15, 2022

    @legendecas
    Member

    It is not supported yet. But I believe it is reasonable to have a conversion method for CallbackInfo to napi_callback_info as that's how we dealt with other wrapper types.

  2. mhdawson commented on Nov 18, 2022

    @mhdawson
    Member

    @erikjalevik are you interested in submitting a PR?

  3. NickNaso commented on Jan 13, 2023

    @NickNaso
    Member

    I'm closing the issue because it has been solved by the PR #1253.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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