node/lib/internal/process
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
..
esm_loader.js lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
next_tick.js async_hooks,process: remove internalNextTick 2018-03-08 13:23:44 +01:00
promises.js tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
stdio.js lib: port remaining errors to new system 2018-03-07 14:54:38 +01:00
warning.js tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
write-coverage.js process: fix coverage generation 2017-12-14 00:49:55 +01:00