1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 23:25:45 +01:00

Remove remaining comprehensions.

This commit is contained in:
Doug Kearns
2016-01-29 23:26:05 +11:00
parent b9849df565
commit c9c9cea6d0
5 changed files with 32 additions and 19 deletions

View File

@@ -542,14 +542,18 @@ var Contexts = Module("contexts", {
var makeParams = function makeParams(self, args) {
let obj = params.apply(self, args);
return iter.toObject([k, Proxy(obj, k)]
for (k of properties(obj)));
return iter.toObject(function* () {
for (let k of properties(obj))
yield [k, Proxy(obj, k)];
}());
};
else if (params)
makeParams = function makeParams(self, args) {
return iter.toObject([name, process(args[i])]
for ([i, name] of iter(params)));
return iter.toObject(function* () {
for (let [i, name] of iter(params))
yield [name, process(args[i])];
}());
};
let rhs = args.literalArg;