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 497195a commit 24b1839Copy full SHA for 24b1839
test/parallel/test-microtask-queue-run-immediate-domain.js
@@ -20,7 +20,7 @@
20
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22
'use strict';
23
-require('../common');
+const common = require('../common');
24
const assert = require('assert');
25
26
// Requiring the domain module here changes the function that is used by node to
@@ -30,6 +30,8 @@ const assert = require('assert');
30
// removed.
31
require('domain');
32
33
+common.crashOnUnhandledRejection();
34
+
35
function enqueueMicrotask(fn) {
36
Promise.resolve().then(fn);
37
}
0 commit comments