| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -421,7 +421,7 @@ and load it instead. | |||
| 421 | 421 | ||
| 422 | 422 | ## Native abstractions for Node.js | |
| 423 | 423 | ||
| 424 | - Each of the examples illustrated in this document make direct use of the | ||
| 424 | + Each of the examples illustrated in this document directly use the | ||
| 425 | 425 | Node.js and V8 APIs for implementing addons. The V8 API can, and has, changed | |
| 426 | 426 | dramatically from one V8 release to the next (and one major Node.js release to | |
| 427 | 427 | the next). With each change, addons may need to be updated and recompiled in | |
@@ -495,7 +495,7 @@ The functions available and how to use them are documented in | |||
| 495 | 495 | ## Addon examples | |
| 496 | 496 | ||
| 497 | 497 | Following are some example addons intended to help developers get started. The | |
| 498 | - examples make use of the V8 APIs. Refer to the online [V8 reference][v8-docs] | ||
| 498 | + examples use the V8 APIs. Refer to the online [V8 reference][v8-docs] | ||
| 499 | 499 | for help with the various V8 calls, and V8's [Embedder's Guide][] for an | |
| 500 | 500 | explanation of several concepts used such as handles, scopes, function | |
| 501 | 501 | templates, etc. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,7 +111,7 @@ versions: | |||
| 111 | 111 | ``` | |
| 112 | 112 | ||
| 113 | 113 | Thus, for an addon to remain ABI-compatible across Node.js major versions, it | |
| 114 | - must make use exclusively of N-API by restricting itself to using | ||
| 114 | + must use N-API exclusively by restricting itself to using | ||
| 115 | 115 | ||
| 116 | 116 | ```c | |
| 117 | 117 | #include <node_api.h> | |
@@ -370,7 +370,7 @@ From the perspective of a native addon this means that the bindings it provides | |||
| 370 | 370 | may be called multiple times, from multiple contexts, and even concurrently from | |
| 371 | 371 | multiple threads. | |
| 372 | 372 | ||
| 373 | - Native addons may need to allocate global state of which they make use during | ||
| 373 | + Native addons may need to allocate global state which they use during | ||
| 374 | 374 | their entire life cycle such that the state must be unique to each instance of | |
| 375 | 375 | the addon. | |
| 376 | 376 | ||
@@ -5504,7 +5504,7 @@ return status of `napi_closing` in response to a call to | |||
| 5504 | 5504 | should be the last API call made in conjunction with a given | |
| 5505 | 5505 | `napi_threadsafe_function`, because after the call completes, there is no | |
| 5506 | 5506 | guarantee that the `napi_threadsafe_function` is still allocated. For the same | |
| 5507 | - reason, do not make use of a thread-safe function | ||
| 5507 | + reason, do not use a thread-safe function | ||
| 5508 | 5508 | after receiving a return value of `napi_closing` in response to a call to | |
| 5509 | 5509 | `napi_call_threadsafe_function`. Data associated with the | |
| 5510 | 5510 | `napi_threadsafe_function` can be freed in its `napi_finalize` callback which | |
@@ -5527,8 +5527,8 @@ reference count reaches zero. In particular, `napi_call_threadsafe_function()` | |||
| 5527 | 5527 | will return `napi_closing`, thus informing the threads that it is no longer | |
| 5528 | 5528 | possible to make asynchronous calls to the thread-safe function. This can be | |
| 5529 | 5529 | used as a criterion for terminating the thread. **Upon receiving a return value | |
| 5530 | - of `napi_closing` from `napi_call_threadsafe_function()` a thread must make no | ||
| 5531 | - further use of the thread-safe function because it is no longer guaranteed to | ||
| 5530 | + of `napi_closing` from `napi_call_threadsafe_function()` a thread must not use | ||
| 5531 | + the thread-safe function anymore because it is no longer guaranteed to | ||
| 5532 | 5532 | be allocated.** | |
| 5533 | 5533 | ||
| 5534 | 5534 | ### Deciding whether to keep the process running | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1718,7 +1718,7 @@ The `tls.createSecureContext()` method creates a `SecureContext` object. It is | |||
| 1718 | 1718 | usable as an argument to several `tls` APIs, such as [`tls.createServer()`][] | |
| 1719 | 1719 | and [`server.addContext()`][], but has no public methods. | |
| 1720 | 1720 | ||
| 1721 | - A key is *required* for ciphers that make use of certificates. Either `key` or | ||
| 1721 | + A key is *required* for ciphers that use certificates. Either `key` or | ||
| 1722 | 1722 | `pfx` can be used to provide it. | |
| 1723 | 1723 | ||
| 1724 | 1724 | If the `ca` option is not given, then Node.js will default to using | |
| Back | FazBrowse Home | New Git URL |
0 commit comments