summaryrefslogtreecommitdiff
path: root/test/async-hooks/test-queue-microtask.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/async-hooks/test-queue-microtask.js')
-rw-r--r--test/async-hooks/test-queue-microtask.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/async-hooks/test-queue-microtask.js b/test/async-hooks/test-queue-microtask.js
index dfa537752e..1e2029efe4 100644
--- a/test/async-hooks/test-queue-microtask.js
+++ b/test/async-hooks/test-queue-microtask.js
@@ -11,11 +11,11 @@ hooks.enable();
const rootAsyncId = async_hooks.executionAsyncId();
-queueMicrotask(common.mustCall(function() {
+queueMicrotask(common.mustCall(() => {
assert.strictEqual(async_hooks.triggerAsyncId(), rootAsyncId);
}));
-process.on('exit', function() {
+process.on('exit', () => {
hooks.sanityCheck();
const as = hooks.activitiesOfTypes('Microtask');