From fb1eafcacc73b7fb98f48b0368d3fabac9d1461d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 1 Apr 2022 22:28:53 -0700 Subject: [PATCH] Update lib/internal/async_hooks.js Co-authored-by: Mohammed Keyvanzadeh --- lib/internal/async_hooks.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/async_hooks.js b/lib/internal/async_hooks.js index 7039e33a362847..fb94e3fd516e58 100644 --- a/lib/internal/async_hooks.js +++ b/lib/internal/async_hooks.js @@ -224,8 +224,6 @@ function emitHook(symbol, asyncId) { // Use a single try/catch for all hook to avoid setting up one per // iteration. try { - // Using var here instead of let because "for (var ...)" is faster than let. - // Refs: https://github.com/nodejs/node/pull/30380#issuecomment-552948364 for (let i = 0; i < active_hooks.array.length; i++) { if (typeof active_hooks.array[i][symbol] === 'function') { active_hooks.array[i][symbol](asyncId);