Skip to content

Commit b2b97f2

Browse files
committed
test: use common.crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to test/parallel/test-microtask-queue-run-immediate.js
1 parent f722d31 commit b2b97f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
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

26+
common.crashOnUnhandledRejection();
27+
2628
function enqueueMicrotask(fn) {
2729
Promise.resolve().then(fn);
2830
}

0 commit comments

Comments
 (0)