We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63f51a commit 75ad37cCopy full SHA for 75ad37c
test/parallel/test-microtask-queue-run-immediate-domain.js
@@ -1,5 +1,5 @@
1
'use strict';
2
-require('../common');
+const common = require('../common');
3
const assert = require('assert');
4
5
// Requiring the domain module here changes the function that is used by node to
@@ -9,6 +9,8 @@ const assert = require('assert');
9
// removed.
10
require('domain');
11
12
+common.crashOnUnhandledRejection();
13
+
14
function enqueueMicrotask(fn) {
15
Promise.resolve().then(fn);
16
}
0 commit comments