node-api: define version 10

Notable runtime changes to existing APIs:
- returning `node_api_cannot_run_js` instead of
  `napi_pending_exception`.
- allow creating references to objects, functions, and symbols.

PR-URL: https://github.com/nodejs/node/pull/55676
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Gabriel Schulhof authored and Antoine du Hamel committed 2025-01-02 15:30:44 +01:00
1 parent 4f77920a9d
commit c2f4d8d688
14 files changed
+46 -65

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
{
"target_name": "test_buffer",
"defines": [
'NAPI_EXPERIMENTAL'
'NAPI_VERSION=10'
],
"sources": [ "test_buffer.c" ]
},