- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 33.7k
 
Closed
Labels
node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.release-agendaIssues and PRs to discuss during the meetings of the Release team.Issues and PRs to discuss during the meetings of the Release team.
Description
- 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
Labels
node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.release-agendaIssues and PRs to discuss during the meetings of the Release team.Issues and PRs to discuss during the meetings of the Release team.