mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 21:32:31 +02:00
Make iter() treat Structs as it does Arrays.
This commit is contained in:
1 parent
03322645a9
commit
f4790729da
1 file changed
+1
-1
@@ -1578,7 +1578,7 @@ function iter(obj, iface) {
|
||||
for (let j of iter(args[i]))
|
||||
yield j;
|
||||
})();
|
||||
else if (isinstance(obj, ["Array"]))
|
||||
else if (isinstance(obj, ["Array", StructBase]))
|
||||
res = obj.entries();
|
||||
else if (Symbol.iterator in obj)
|
||||
res = obj[Symbol.iterator]();
|
||||
|
||||
Reference in new issue
Block a user