mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 19:25:07 +00:00

This improves Node.js errors by always showing the attached properties when inspecting such an error. This applies especially to SystemError. It did often not show any properties but now all properties will be visible. This is done in a mainly backwards compatible way. Instead of using prototype getters and setters, the property is now set directly on the error. PR-URL: https://github.com/nodejs/node/pull/29677 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
18 lines
453 B
Plaintext
18 lines
453 B
Plaintext
internal/assert.js:*
|
|
throw new ERR_INTERNAL_ASSERTION(message);
|
|
^
|
|
|
|
Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
|
|
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
|
|
|
|
at assert (internal/assert.js:*:*)
|
|
at * (*test*message*internal_assert.js:7:1)
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at * {
|
|
code: 'ERR_INTERNAL_ASSERTION'
|
|
}
|