Permalink
Please
sign in to comment.
Browse files
lib: validate Error.captureStackTrace() calls
This adds a custom eslint rule to verify that `Error.captureStackTrace()` is only called if necessary. In most cases the helper function should be used instead. PR-URL: #26738 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
- Loading branch information...
Showing
with
15 additions
and 0 deletions.
- +2 −0 lib/.eslintrc.yaml
- +1 −0 lib/assert.js
- +1 −0 lib/events.js
- +2 −0 lib/fs.js
- +1 −0 lib/internal/assert/assertion_error.js
- +1 −0 lib/internal/async_hooks.js
- +1 −0 lib/internal/console/constructor.js
- +5 −0 lib/internal/errors.js
- +1 −0 lib/internal/process/warning.js
0 comments on commit
3fe1e80