node/lib/internal/modules
Michaël Zasso 6a9f049968
tools,lib: forbid native Error constructors
This adds a rule that forbids the use of native Error constructors in
the `lib` directory. This is to encourage use of the `internal/errors`
mechanism. The rule is disabled for errors that are not created with
the `internal/errors` module but are still assigned an error code.

PR-URL: https://github.com/nodejs/node/pull/19373
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-03-21 20:15:33 +01:00
..
cjs tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
esm lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00