0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
Gabriel Schulhof 5030e81ce3 n-api: add APIs for per-instance state management
Adds `napi_set_instance_data()` and `napi_get_instance_data()`, which
allow native addons to store their data on and retrieve their data from
`napi_env`. `napi_set_instance_data()` accepts a finalizer which is
called when the `node::Environment()` is destroyed.

This entails rendering the `napi_env` local to each add-on.

Fixes: https://github.com/nodejs/abi-stable-node/issues/378
PR-URL: https://github.com/nodejs/node/pull/28682
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2019-07-25 16:53:07 -07:00
..
api n-api: add APIs for per-instance state management 2019-07-25 16:53:07 -07:00
api_assets doc: adjust TOC margins 2019-06-07 11:22:16 +02:00
changelogs 2019-07-23, Version 12.7.0 (Current) 2019-07-23 22:54:24 +02:00
guides doc: fix type in NSS update instructions 2019-07-24 10:56:09 -07:00
.eslintrc.yaml
abi_version_registry.json doc: claim NODE_MODULE_VERSION=76 for Electron 8 2019-07-24 15:57:49 -07:00
first_timer_badge.png
full-white-stripe.jpg
node.1 policy: add policy-integrity to mitigate policy tampering 2019-07-20 13:24:58 -07:00
offboarding.md
onboarding-extras.md Revert "build: remove mips support" 2019-06-18 14:28:13 +10:00
onboarding.md doc: remove "make that" from onboarding.md 2019-06-23 07:07:14 -07:00
osx_installer_logo.png
releases.md doc: remove "note that" from releases.md 2019-06-23 07:07:12 -07:00
STYLE_GUIDE.md doc: revise Style Guide 2019-02-19 19:17:12 -08:00
template.html doc: remove GA tracking 2018-10-04 07:18:23 +02:00
thin-white-stripe.jpg