Unverified Commit d3c2534b authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Myles Borins
Browse files

assert: use destructuring for errors

Destructure the necessary Error classes from internal/errors.
This improves the readability of the error creation.

Backport-PR-URL: https://github.com/nodejs/node/pull/19230
PR-URL: https://github.com/nodejs/node/pull/18247


Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 74f0d1aa
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