test: refactor test-enable-in-init
Remove unused function arguments. Convert to ES6 arrow syntax. PR-URL: https://github.com/nodejs/node/pull/24976 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
9f37f9c439
commit
848ae89d79
@ -10,7 +10,7 @@ const nestedHook = async_hooks.createHook({
|
|||||||
let nestedCall = false;
|
let nestedCall = false;
|
||||||
|
|
||||||
async_hooks.createHook({
|
async_hooks.createHook({
|
||||||
init: common.mustCall(function(id, type) {
|
init: common.mustCall(() => {
|
||||||
nestedHook.enable();
|
nestedHook.enable();
|
||||||
if (!nestedCall) {
|
if (!nestedCall) {
|
||||||
nestedCall = true;
|
nestedCall = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user