Skip to content

When was napi_detach_arraybuffer added? #33001

@mafintosh

Description

@mafintosh
  • Version: 12.16.2
  • Platform: mac
  • Subsystem: n-api

Trying to find which versions of Node that support the new experimental detach_arraybuffer api.

On the 12.x docs linked from the websites it says that the napi_detach_arraybuffer api was added in Node 12 and on the the 14.x docs it says it was added in Node 13.

https://nodejs.org/dist/latest-v12.x/docs/api/n-api.html#n_api_napi_detach_arraybuffer
https://nodejs.org/dist/latest-v14.x/docs/api/n-api.html#n_api_napi_detach_arraybuffer

Side note, I get an implicit declaration warning when trying to use the api as well in both latest 12 and 14 (code works tho), so unsure if that's a mistake I'm doing or not (all the other napi calls works fine and compile without errors).

Can try to investigate that part and open a separate issue.

../binding.c:27:3: warning: implicit declaration of function 'napi_detach_arraybuffer' is invalid in C99 [-Wimplicit-function-declaration]
  napi_detach_arraybuffer(env, argv[0]);
  ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    node-apiIssues and PRs related to the Node-API.release-agendaIssues and PRs to discuss during the meetings of the Release team.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions