]> git.kaiwu.me - quickjs.git/commitdiff
added missing variable
authorFabrice Bellard <fabrice@bellard.org>
Tue, 18 Mar 2025 17:34:05 +0000 (18:34 +0100)
committerFabrice Bellard <fabrice@bellard.org>
Tue, 18 Mar 2025 17:34:05 +0000 (18:34 +0100)
tests/test_loop.js

index d387cad7438f139e52385525f13fac3f9e630bf0..50e21225753c8117e50e53991ccf1acd4acde916 100644 (file)
@@ -149,7 +149,7 @@ function test_for_in()
 
 function test_for_in2()
 {
-    var i;
+    var i, tab;
     tab = [];
     for(i in {x:1, y: 2, z:3}) {
         if (i === "y")