Files
node/lib/internal
Colin Ihrig 1ef3c53e24 test_runner: better handle async bootstrap errors
The test runner is bootstrapped synchronously, with the exception
of importing custom reporters. To better handle asynchronously
throw errors, this commit introduces an internal error type that
can be checked for from the test runner's uncaughtException
handler.

After https://github.com/nodejs/node/pull/46707 and this change
land, the other throw statement in the uncaughtException handler
can be removed. This will allow the test runner to handle errors
thrown from outside of tests (which currently prevents the test
runner from reporting results).

PR-URL: https://github.com/nodejs/node/pull/46720
Backport-PR-URL: https://github.com/nodejs/node/pull/46839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2023-03-04 23:03:34 -05:00
..
2023-01-31 08:04:16 -05:00
2023-03-04 23:03:31 -05:00
2022-08-22 19:37:26 -04:00
2023-01-31 08:04:18 -05:00
2021-01-27 20:46:54 +02:00
2023-01-03 08:38:44 -05:00
2022-09-26 16:13:13 -03:00
2022-08-22 19:37:17 -04:00
2023-01-03 08:38:14 -05:00
2023-03-04 23:03:30 -05:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.