diff options
author | Nick Schonning <nschonni@gmail.com> | 2019-09-06 08:42:22 +0300 |
---|---|---|
committer | Trivikram Kamat <16024985+trivikr@users.noreply.github.com> | 2019-09-10 02:45:24 +0300 |
commit | c929b15d1d65ae88261c65e901c7dca9f110a2c5 (patch) | |
tree | 8f76e0fa29566267ba53ad0bfdef72ea72129e6d /doc/api/addons.md | |
parent | 6723169097759502da11c47389ffb3d650404417 (diff) |
doc: space around lists
Address markdownlint rule MD032.
Flagged a few mixed list styles.
PR-URL: https://github.com/nodejs/node/pull/29467
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/addons.md')
-rw-r--r-- | doc/api/addons.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/addons.md b/doc/api/addons.md index 59d708a71f7..81bd8b5bacc 100644 --- a/doc/api/addons.md +++ b/doc/api/addons.md @@ -143,6 +143,7 @@ followed by a function body. The following three variables may be used inside the function body following an invocation of `NODE_MODULE_INIT()`: + * `Local<Object> exports`, * `Local<Value> module`, and * `Local<Context> context` @@ -158,6 +159,7 @@ they were created. The context-aware addon can be structured to avoid global static data by performing the following steps: + * defining a class which will hold per-addon-instance data. Such a class should include a `v8::Persistent<v8::Object>` which will hold a weak reference to the addon's `exports` object. The callback associated with the weak @@ -259,6 +261,7 @@ signature. In order to be loaded from multiple Node.js environments, such as a main thread and a Worker thread, an add-on needs to either: + - Be an N-API addon, or - Be declared as context-aware using `NODE_MODULE_INIT()` as described above |