Files
node/doc/api
James Ide e54ee80d0b doc: document ES2022's Error "cause" property
ES2022 adds an `options` parameter to the `Error` constructor. If the
options argument contains a property named `cause`, the property's value
is assigned to a non-enumerable property named `cause` on the newly
created error. The `cause` property is not referenced anywhere else in
the ES2022/2023 specifications. It is for error-formatting software like
`util.inspect()` to consume.

The `cause` property was added in V8 9.3, which was added to Node
16.9.0.

Refs: https://tc39.es/ecma262/#sec-error-message
Refs: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V16.md#error-cause

PR-URL: https://github.com/nodejs/node/pull/43830
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-07-16 07:07:46 +01:00
..
2022-05-20 10:33:16 +01:00
2022-05-24 10:27:17 +01:00
2022-05-24 10:27:17 +01:00
2022-07-07 09:59:35 -04:00
2022-05-24 10:27:17 +01:00
2022-06-16 09:45:05 -04:00
2022-07-13 22:52:14 +02:00
2022-06-10 09:24:50 +01:00
2022-06-30 09:34:10 -04:00
2022-07-13 22:52:14 +02:00
2022-07-13 22:52:14 +02:00
2022-06-16 09:45:05 -04:00
2022-06-13 11:00:49 +01:00
2022-07-14 09:11:42 +01:00
2022-05-17 20:04:51 +01:00
2022-07-13 22:52:14 +02:00