Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 24b1839

Browse filesBrowse files
Kcin1993MylesBorins
authored andcommitted
test: use common.crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to path: - test/parallel/test-microtask-queue-run-immediate-domain.js PR-URL: #17235 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 497195a commit 24b1839
Copy full SHA for 24b1839

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-microtask-queue-run-immediate-domain.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-microtask-queue-run-immediate-domain.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
const common = require('../common');
2424
const assert = require('assert');
2525

2626
// Requiring the domain module here changes the function that is used by node to
@@ -30,6 +30,8 @@ const assert = require('assert');
3030
// removed.
3131
require('domain');
3232

33+
common.crashOnUnhandledRejection();
34+
3335
function enqueueMicrotask(fn) {
3436
Promise.resolve().then(fn);
3537
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.