mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
doc/tools: fix more type inconsistencies
- fix a number of uppercase types - lowercase 'integer' - consistent formatting in crypto PR-URL: https://github.com/nodejs/node/pull/11697 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
20 files changed
+410
-409
No files matched your search
+9
-9
@@ -243,7 +243,7 @@ new MyError().stack;
|
||||
|
||||
### Error.stackTraceLimit
|
||||
|
||||
* {Number}
|
||||
* {number}
|
||||
|
||||
The `Error.stackTraceLimit` property specifies the number of stack frames
|
||||
collected by a stack trace (whether generated by `new Error().stack` or
|
||||
@@ -257,7 +257,7 @@ not capture any frames.
|
||||
|
||||
### error.message
|
||||
|
||||
* {String}
|
||||
* {string}
|
||||
|
||||
The `error.message` property is the string description of the error as set by calling `new Error(message)`.
|
||||
The `message` passed to the constructor will also appear in the first line of
|
||||
@@ -273,7 +273,7 @@ console.error(err.message);
|
||||
|
||||
### error.stack
|
||||
|
||||
* {String}
|
||||
* {string}
|
||||
|
||||
The `error.stack` property is a string describing the point in the code at which
|
||||
the `Error` was instantiated.
|
||||
@@ -449,14 +449,14 @@ added properties.
|
||||
|
||||
#### error.code
|
||||
|
||||
* {String}
|
||||
* {string}
|
||||
|
||||
The `error.code` property is a string representing the error code, which is always
|
||||
`E` followed by a sequence of capital letters.
|
||||
|
||||
#### error.errno
|
||||
|
||||
* {String | Number}
|
||||
* {string|number}
|
||||
|
||||
The `error.errno` property is a number or a string.
|
||||
The number is a **negative** value which corresponds to the error code defined in
|
||||
@@ -466,27 +466,27 @@ In case of a string, it is the same as `error.code`.
|
||||
|
||||
#### error.syscall
|
||||
|
||||
* {String}
|
||||
* {string}
|
||||
|
||||
The `error.syscall` property is a string describing the [syscall][] that failed.
|
||||
|
||||
#### error.path
|
||||
|
||||
* {String}
|
||||
* {string}
|
||||
|
||||
When present (e.g. in `fs` or `child_process`), the `error.path` property is a string
|
||||
containing a relevant invalid pathname.
|
||||
|
||||
#### error.address
|
||||
|
||||
* {String}
|
||||
* {string}
|
||||
|
||||
When present (e.g. in `net` or `dgram`), the `error.address` property is a string
|
||||
describing the address to which the connection failed.
|
||||
|
||||
#### error.port
|
||||
|
||||
* {Number}
|
||||
* {number}
|
||||
|
||||
When present (e.g. in `net` or `dgram`), the `error.port` property is a number representing
|
||||
the connection's port that is not available.
|
||||
|
||||
Reference in new issue
Block a user