| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0418a70 commit 6c6da38
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -191,7 +191,7 @@ added: v0.1.27 | |||
| 191 | 191 | - `rrtype` {string} Resource record type. Default: `'A'`. | |
| 192 | 192 | - `callback` {Function} | |
| 193 | 193 | - `err` {Error} | |
| 194 | - - `records` {string[] | Object[] | string[][] | Object} | ||
| 194 | + - `records` {string[] | Object[] | Object} | ||
| 195 | 195 | ||
| 196 | 196 | Uses the DNS protocol to resolve a hostname (e.g. `'nodejs.org'`) into an array | |
| 197 | 197 | of the resource records. The `callback` function has arguments | |
@@ -422,7 +422,7 @@ added: v0.1.27 | |||
| 422 | 422 | - `hostname` {string} | |
| 423 | 423 | - `callback` {Function} | |
| 424 | 424 | - `err` {Error} | |
| 425 | - - `addresses` {string[][]} | ||
| 425 | + - `addresses` {string[]} | ||
| 426 | 426 | ||
| 427 | 427 | Uses the DNS protocol to resolve text queries (`TXT` records) for the | |
| 428 | 428 | `hostname`. The `addresses` argument passed to the `callback` function is | |
@@ -436,7 +436,7 @@ treated separately. | |||
| 436 | 436 | - `hostname` {string} | |
| 437 | 437 | - `callback` {Function} | |
| 438 | 438 | - `err` {Error} | |
| 439 | - - `ret` {Object[][]} | ||
| 439 | + - `ret` {Object[]} | ||
| 440 | 440 | ||
| 441 | 441 | Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). | |
| 442 | 442 | The `ret` argument passed to the `callback` function will be an array containing | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3160,6 +3160,7 @@ support it: | |||
| 3160 | 3160 | [`napi_queue_async_work`]: #n_api_napi_queue_async_work | |
| 3161 | 3161 | [`napi_reference_ref`]: #n_api_napi_reference_ref | |
| 3162 | 3162 | [`napi_reference_unref`]: #n_api_napi_reference_unref | |
| 3163 | + [`napi_throw`]: #n_api_napi_throw | ||
| 3163 | 3164 | [`napi_throw_error`]: #n_api_napi_throw_error | |
| 3164 | 3165 | [`napi_throw_range_error`]: #n_api_napi_throw_range_error | |
| 3165 | 3166 | [`napi_throw_type_error`]: #n_api_napi_throw_type_error | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -289,7 +289,7 @@ by subclasses. | |||
| 289 | 289 | * `flag` {boolean} | |
| 290 | 290 | ||
| 291 | 291 | Indicate whether to treat `TypedArray` and `DataView` objects as | |
| 292 | - host objects, i.e. pass them to [`serializer._writeHostObject`][]. | ||
| 292 | + host objects, i.e. pass them to [`serializer._writeHostObject()`][]. | ||
| 293 | 293 | ||
| 294 | 294 | The default is not to treat those objects as host objects. | |
| 295 | 295 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -92,7 +92,7 @@ The test checks functionality in the `http` module. | |||
| 92 | 92 | Most tests use the `assert` module to confirm expectations of the test. | |
| 93 | 93 | ||
| 94 | 94 | The require statements are sorted in | |
| 95 | - [ASCII](http://man7.org/linux/man-pages/man7/ascii.7.html) order (digits, upper | ||
| 95 | + [ASCII][] order (digits, upper | ||
| 96 | 96 | case, `_`, lower case). | |
| 97 | 97 | ||
| 98 | 98 | ### **Lines 10-21** | |
@@ -231,9 +231,9 @@ assert.throws( | |||
| 231 | 231 | For performance considerations, we only use a selected subset of ES.Next | |
| 232 | 232 | features in JavaScript code in the `lib` directory. However, when writing | |
| 233 | 233 | tests, for the ease of backporting, it is encouraged to use those ES.Next | |
| 234 | - features that can be used directly without a flag in [all maintained branches] | ||
| 235 | - (https://github.com/nodejs/lts). [node.green](http://node.green/) lists | ||
| 236 | - available features in each release. | ||
| 234 | + features that can be used directly without a flag in | ||
| 235 | + [all maintained branches][]. [node.green][] lists available features | ||
| 236 | + in each release. | ||
| 237 | 237 | ||
| 238 | 238 | For example: | |
| 239 | 239 | ||
@@ -258,8 +258,7 @@ functions worked correctly with the `beforeExit` event, then it might be named | |||
| 258 | 258 | ### Web Platform Tests | |
| 259 | 259 | ||
| 260 | 260 | Some of the tests for the WHATWG URL implementation (named | |
| 261 | - `test-whatwg-url-*.js`) are imported from the | ||
| 262 | - [Web Platform Tests Project](https://github.com/w3c/web-platform-tests/tree/master/url). | ||
| 261 | + `test-whatwg-url-*.js`) are imported from the [Web Platform Tests Project][]. | ||
| 263 | 262 | These imported tests will be wrapped like this: | |
| 264 | 263 | ||
| 265 | 264 | ```js | |
@@ -332,13 +331,17 @@ $ make cctest | |||
| 332 | 331 | ``` | |
| 333 | 332 | ||
| 334 | 333 | ### Node test fixture | |
| 335 | - There is a [test fixture] named `node_test_fixture.h` which can be included by | ||
| 334 | + There is a [test fixture][] named `node_test_fixture.h` which can be included by | ||
| 336 | 335 | unit tests. The fixture takes care of setting up the Node.js environment | |
| 337 | 336 | and tearing it down after the tests have finished. | |
| 338 | 337 | ||
| 339 | 338 | It also contains a helper to create arguments to be passed into Node.js. It | |
| 340 | 339 | will depend on what is being tested if this is required or not. | |
| 341 | 340 | ||
| 341 | + [ASCII]: http://man7.org/linux/man-pages/man7/ascii.7.html | ||
| 342 | 342 | [Google Test]: https://github.com/google/googletest | |
| 343 | - [Test fixture]: https://github.com/google/googletest/blob/master/googletest/docs/Primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests | ||
| 343 | + [Web Platform Tests Project]: https://github.com/w3c/web-platform-tests/tree/master/url | ||
| 344 | 344 | [`common` module]: https://github.com/nodejs/node/blob/master/test/common/README.md | |
| 345 | + [all maintained branches]: https://github.com/nodejs/lts | ||
| 346 | + [node.green]: http://node.green/ | ||
| 347 | + [test fixture]: https://github.com/google/googletest/blob/master/googletest/docs/Primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments