mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 22:14:11 +01:00
Profide default leaf names in :write for people who can't be bothered to think up their own.
--HG-- extra : rebase_source : 6bfef2eff2a7319af53fa9610fd8f16d5513e221
This commit is contained in:
@@ -391,9 +391,7 @@ function iter(obj) {
|
||||
if (obj.constructor instanceof ctypes.StructType)
|
||||
return (function () {
|
||||
for (let prop in values(obj.constructor.fields))
|
||||
let ([name, type] = Iterator(prop).next()) {
|
||||
yield [name, obj[name]];
|
||||
}
|
||||
yield let ([name, type] = Iterator(prop).next()) [name, obj[name]];
|
||||
})();
|
||||
obj = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user