Skip to content

Should AdjustExternalMemory take a BasicEnv? #1594

@audetto

Description

@audetto

The core api function takes a node_api_basic_env, see https://nodejs.org/api/n-api.html#napi_adjust_external_memory

While via this library it needs a full Env: https://github.com/nodejs/node-addon-api/blob/ae2c23e7460d91ab5b1844d04372f42801bfa48e/napi-inl.h#L6702C34-L6702C54

Should it be downgraded to a BasicEnv so it can be called in the new synchronous finalisers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions