Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
test: remove common.disableCrashOnUnhandledRejection
Use the --unhandled-rejections=none CLI flag instead. PR-URL: #38210 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Loading branch information
Showing
with
7 additions
and 47 deletions.
- +3 −5 doc/guides/writing-tests.md
- +0 −8 test/common/README.md
- +0 −5 test/common/index.js
- +0 −2 test/common/index.mjs
- +0 −1 test/common/inspector-helper.js
- +2 −3 test/parallel/test-async-wrap-pop-id-during-load.js
- +0 −3 test/parallel/test-no-harmony-top-level-await.mjs
- +0 −1 test/parallel/test-promise-handled-rejection-no-warning.js
- +0 −2 test/parallel/test-promise-unhandled-error.js
- +0 −2 test/parallel/test-promise-unhandled-silent-no-hook.js
- +0 −2 test/parallel/test-promise-unhandled-silent.js
- +0 −2 test/parallel/test-promise-unhandled-throw-handler.js
- +0 −2 test/parallel/test-promise-unhandled-warn.js
- +1 −2 test/parallel/test-promises-unhandled-proxy-rejections.js
- +1 −3 test/parallel/test-promises-unhandled-rejections.js
- +0 −2 test/parallel/test-promises-unhandled-symbol-rejections.js
- +0 −2 test/parallel/test-trace-events-promises.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -61,14 +61,6 @@ On non-Windows platforms, this always returns `true`. | ||
|
|
||
| Creates a 10 MB file of all null characters. | ||
|
|
||
| ### `enoughTestCpu` | ||
|
|
||
| * [<boolean>][] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -2,10 +2,7 @@ | ||
|
|
||
| import { | ||
| mustCall, | ||
| } from '../common/index.mjs'; | ||
|
|
||
| process.on('unhandledRejection', mustCall()); | ||
| Promise.reject(new Error('should not be fatal error')); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -3,8 +3,6 @@ | ||
|
|
||
| const common = require('../common'); | ||
|
|
||
| // Verify that ignoring unhandled rejection works fine and that no warning is | ||
| // logged. | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -3,8 +3,6 @@ | ||
|
|
||
| const common = require('../common'); | ||
|
|
||
| // Verify that ignoring unhandled rejection works fine and that no warning is | ||
| // logged. | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,8 +1,7 @@ | ||
| // Flags: --unhandled-rejections=none | ||
| 'use strict'; | ||
| const common = require('../common'); | ||
|
|
||
| function throwErr() { | ||
| throw new Error('Error from proxy'); | ||
| } | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

