| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a213eb7 commit c9226f5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -83,7 +83,7 @@ NODE_MODULE(NODE_GYP_MODULE_NAME, Initialize) | |||
| 83 | 83 | } // namespace demo | |
| 84 | 84 | ``` | |
| 85 | 85 | ||
| 86 | - Note that all Node.js Addons must export an initialization function following | ||
| 86 | + All Node.js Addons must export an initialization function following | ||
| 87 | 87 | the pattern: | |
| 88 | 88 | ||
| 89 | 89 | ```cpp | |
@@ -310,9 +310,8 @@ Because the exact path to the compiled Addon binary can vary depending on how | |||
| 310 | 310 | it is compiled (i.e. sometimes it may be in `./build/Debug/`), Addons can use | |
| 311 | 311 | the [bindings][] package to load the compiled module. | |
| 312 | 312 | ||
| 313 | - Note that while the `bindings` package implementation is more sophisticated | ||
| 314 | - in how it locates Addon modules, it is essentially using a try-catch pattern | ||
| 315 | - similar to: | ||
| 313 | + While the `bindings` package implementation is more sophisticated in how it | ||
| 314 | + locates Addon modules, it is essentially using a try-catch pattern similar to: | ||
| 316 | 315 | ||
| 317 | 316 | ```js | |
| 318 | 317 | try { | |
@@ -588,10 +587,10 @@ NODE_MODULE(NODE_GYP_MODULE_NAME, Init) | |||
| 588 | 587 | } // namespace demo | |
| 589 | 588 | ``` | |
| 590 | 589 | ||
| 591 | - Note that this example uses a two-argument form of `Init()` that receives | ||
| 592 | - the full `module` object as the second argument. This allows the Addon | ||
| 593 | - to completely overwrite `exports` with a single function instead of | ||
| 594 | - adding the function as a property of `exports`. | ||
| 590 | + This example uses a two-argument form of `Init()` that receives the full | ||
| 591 | + `module` object as the second argument. This allows the Addon to completely | ||
| 592 | + overwrite `exports` with a single function instead of adding the function as a | ||
| 593 | + property of `exports`. | ||
| 595 | 594 | ||
| 596 | 595 | To test it, run the following JavaScript: | |
| 597 | 596 | ||
@@ -605,7 +604,7 @@ addon((msg) => { | |||
| 605 | 604 | }); | |
| 606 | 605 | ``` | |
| 607 | 606 | ||
| 608 | - Note that, in this example, the callback function is invoked synchronously. | ||
| 607 | + In this example, the callback function is invoked synchronously. | ||
| 609 | 608 | ||
| 610 | 609 | ### Object factory | |
| 611 | 610 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments