Browse Source

doc: fix some links

PR-URL: https://github.com/nodejs/node/pull/16202
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v9.x-staging
Vse Mozhet Byt 7 years ago
parent
commit
f88178906b
  1. 4
      doc/api/assert.md
  2. 4
      doc/api/async_hooks.md
  3. 8
      doc/api/http2.md
  4. 1
      doc/api/n-api.md

4
doc/api/assert.md

@ -47,10 +47,10 @@ Primitive values are compared with the [Abstract Equality Comparison][]
Only [enumerable "own" properties][] are considered. The Only [enumerable "own" properties][] are considered. The
[`assert.deepEqual()`][] implementation does not test the [`assert.deepEqual()`][] implementation does not test the
[`[[Prototype]]`][prototype-spec] of objects or enumerable own [`Symbol`][] [`[[Prototype]]`][prototype-spec] of objects or enumerable own [`Symbol`][]
properties. For such checks, consider using [assert.deepStrictEqual()][] properties. For such checks, consider using [`assert.deepStrictEqual()`][]
instead. [`assert.deepEqual()`][] can have potentially surprising results. The instead. [`assert.deepEqual()`][] can have potentially surprising results. The
following example does not throw an `AssertionError` because the properties on following example does not throw an `AssertionError` because the properties on
the [RegExp][] object are not enumerable: the [`RegExp`][] object are not enumerable:
```js ```js
// WARNING: This does not throw an AssertionError! // WARNING: This does not throw an AssertionError!

4
doc/api/async_hooks.md

@ -95,7 +95,7 @@ respective asynchronous event during a resource's lifetime.
All callbacks are optional. So, for example, if only resource cleanup needs to All callbacks are optional. So, for example, if only resource cleanup needs to
be tracked then only the `destroy` callback needs to be passed. The be tracked then only the `destroy` callback needs to be passed. The
specifics of all functions that can be passed to `callbacks` is in the section specifics of all functions that can be passed to `callbacks` is in the section
[`Hook Callbacks`][]. [Hook Callbacks][].
```js ```js
const async_hooks = require('async_hooks'); const async_hooks = require('async_hooks');
@ -637,5 +637,5 @@ constructor.
[`after` callback]: #async_hooks_after_asyncid [`after` callback]: #async_hooks_after_asyncid
[`before` callback]: #async_hooks_before_asyncid [`before` callback]: #async_hooks_before_asyncid
[`destroy` callback]: #async_hooks_before_asyncid [`destroy` callback]: #async_hooks_before_asyncid
[`Hook Callbacks`]: #async_hooks_hook_callbacks
[`init` callback]: #async_hooks_init_asyncid_type_triggerasyncid_resource [`init` callback]: #async_hooks_init_asyncid_type_triggerasyncid_resource
[Hook Callbacks]: #async_hooks_hook_callbacks

8
doc/api/http2.md

@ -1322,7 +1322,7 @@ added: v8.5.0
* `request` {http2.Http2ServerRequest} * `request` {http2.Http2ServerRequest}
* `response` {http2.Http2ServerResponse} * `response` {http2.Http2ServerResponse}
If a [`'request'`][] listener is registered or [`'http2.createServer()'`][] is If a [`'request'`][] listener is registered or [`http2.createServer()`][] is
supplied a callback function, the `'checkContinue'` event is emitted each time supplied a callback function, the `'checkContinue'` event is emitted each time
a request with an HTTP `Expect: 100-continue` is received. If this event is a request with an HTTP `Expect: 100-continue` is received. If this event is
not listened for, the server will automatically respond with a status not listened for, the server will automatically respond with a status
@ -1427,7 +1427,7 @@ added: v8.5.0
* `request` {http2.Http2ServerRequest} * `request` {http2.Http2ServerRequest}
* `response` {http2.Http2ServerResponse} * `response` {http2.Http2ServerResponse}
If a [`'request'`][] listener is registered or [`'http2.createSecureServer()'`][] If a [`'request'`][] listener is registered or [`http2.createSecureServer()`][]
is supplied a callback function, the `'checkContinue'` event is emitted each is supplied a callback function, the `'checkContinue'` event is emitted each
time a request with an HTTP `Expect: 100-continue` is received. If this event time a request with an HTTP `Expect: 100-continue` is received. If this event
is not listened for, the server will automatically respond with a status is not listened for, the server will automatically respond with a status
@ -2149,7 +2149,7 @@ set on `request.stream`.
`setTimeout` method will be called on `request.stream.session`. `setTimeout` method will be called on `request.stream.session`.
`pause`, `read`, `resume`, and `write` will throw an error with code `pause`, `read`, `resume`, and `write` will throw an error with code
`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session and Sockets`][] for `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [Http2Session and Sockets][] for
more information. more information.
All other interactions will be routed directly to the socket. With TLS support, All other interactions will be routed directly to the socket. With TLS support,
@ -2521,7 +2521,7 @@ set on `response.stream`.
`setTimeout` method will be called on `response.stream.session`. `setTimeout` method will be called on `response.stream.session`.
`pause`, `read`, `resume`, and `write` will throw an error with code `pause`, `read`, `resume`, and `write` will throw an error with code
`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session and Sockets`][] for `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [Http2Session and Sockets][] for
more information. more information.
All other interactions will be routed directly to the socket. All other interactions will be routed directly to the socket.

1
doc/api/n-api.md

@ -3680,6 +3680,7 @@ NAPI_EXTERN napi_status napi_run_script(napi_env env,
[Working with JavaScript Values]: #n_api_working_with_javascript_values [Working with JavaScript Values]: #n_api_working_with_javascript_values
[Working with JavaScript Values - Abstract Operations]: #n_api_working_with_javascript_values_abstract_operations [Working with JavaScript Values - Abstract Operations]: #n_api_working_with_javascript_values_abstract_operations
[`napi_async_init`]: #n_api_napi_async_init
[`napi_cancel_async_work`]: #n_api_napi_cancel_async_work [`napi_cancel_async_work`]: #n_api_napi_cancel_async_work
[`napi_close_escapable_handle_scope`]: #n_api_napi_close_escapable_handle_scope [`napi_close_escapable_handle_scope`]: #n_api_napi_close_escapable_handle_scope
[`napi_close_handle_scope`]: #n_api_napi_close_handle_scope [`napi_close_handle_scope`]: #n_api_napi_close_handle_scope

Loading…
Cancel
Save