From 254a07754777ea0da8fa8bb103afff87a38c2f94 Mon Sep 17 00:00:00 2001 From: Popovkov57 Date: Sun, 20 Aug 2023 12:56:49 +0200 Subject: [PATCH] Fix #4109 Replace for-of loop with standard for loop in debug.js --- debug/src/debug.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug/src/debug.js b/debug/src/debug.js index d76a60ca45..655749b760 100644 --- a/debug/src/debug.js +++ b/debug/src/debug.js @@ -362,7 +362,8 @@ export function initDebug() { for (let i = 0; i < hooks.length; i += 1) { const hook = hooks[i]; if (hook._args) { - for (const arg of hook._args) { + for (let j = 0; j < hook._args.length; j++) { + const arg = hook._args[j]; if (isNaN(arg)) { const componentName = getDisplayName(vnode); throw new Error(