mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
df08779e0d
This commit removes `common.crashOnUnhandledRejection()` and adds `common.disableCrashOnUnhandledRejection()`. To reduce the risk of mistakes and make writing tests that involve promises simpler, always install the unhandledRejection hook in tests and provide a way to disable it for the rare cases where it's needed. PR-URL: https://github.com/nodejs/node/pull/21849 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> |
||
---|---|---|
.. | ||
es-module.status | ||
test-esm-basic-imports.mjs | ||
test-esm-cjs-main.js | ||
test-esm-cyclic-dynamic-import.mjs | ||
test-esm-double-encoding.mjs | ||
test-esm-dynamic-import.js | ||
test-esm-encoded-path-native.js | ||
test-esm-encoded-path.mjs | ||
test-esm-error-cache.js | ||
test-esm-example-loader.js | ||
test-esm-forbidden-globals.mjs | ||
test-esm-import-meta.mjs | ||
test-esm-json.mjs | ||
test-esm-live-binding.mjs | ||
test-esm-loader-dependency.mjs | ||
test-esm-loader-invalid-format.mjs | ||
test-esm-loader-invalid-url.mjs | ||
test-esm-loader-missing-dynamic-instantiate-hook.mjs | ||
test-esm-loader-modulemap.js | ||
test-esm-loader-search.js | ||
test-esm-main-lookup.mjs | ||
test-esm-named-exports.mjs | ||
test-esm-namespace.mjs | ||
test-esm-preserve-symlinks-main.js | ||
test-esm-preserve-symlinks-not-found-plain.mjs | ||
test-esm-preserve-symlinks-not-found.mjs | ||
test-esm-preserve-symlinks.js | ||
test-esm-require-cache.mjs | ||
test-esm-resolve-hook.mjs | ||
test-esm-shared-loader-dep.mjs | ||
test-esm-shebang.mjs | ||
test-esm-snapshot.mjs | ||
test-esm-symlink-main.js | ||
test-esm-symlink.js | ||
test-esm-throw-undefined.mjs | ||
testcfg.py |