Commit 939a5804 authored by John-David Dalton's avatar John-David Dalton Committed by Evan Lucas
Browse files

errors: make `code` and `name` properties settable

For internal errors, make `code` and `name` settable while keeping them
non-own properties by default.

Backport-PR-URL: https://github.com/nodejs/node/pull/16078
PR-URL: https://github.com/nodejs/node/pull/15694
Fixes: https://github.com/nodejs/node/issues/15658


Reviewed-By: default avatarEvan Lucas <evanlucas@me.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarMichael Dawson <michael_dawson@ca.ibm.com>
parent 0bd2fd56
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment