diff --git a/test/async-hooks/test-enable-in-init.js b/test/async-hooks/test-enable-in-init.js index e4be9f9f87e3eb..7bc70994e1fa7d 100644 --- a/test/async-hooks/test-enable-in-init.js +++ b/test/async-hooks/test-enable-in-init.js @@ -10,7 +10,7 @@ const nestedHook = async_hooks.createHook({ let nestedCall = false; async_hooks.createHook({ - init: common.mustCall(function(id, type) { + init: common.mustCall(() => { nestedHook.enable(); if (!nestedCall) { nestedCall = true;