1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-10 08:44:13 +01:00

Fix ex grr.

This commit is contained in:
Kris Maglione
2011-05-27 20:03:35 -04:00
parent 015620921a
commit 1632e5d594

View File

@@ -410,10 +410,12 @@ var Ex = Module("Ex", {
else {
let opt = cmd.optionMap["-" + k];
let val = opt.type && opt.type.parse(v);
util.assert(val != null && (typeof val !== "number" || !isNaN(val)),
_("option.noSuch", k));
Class.replaceProperty(args, opt.names[0], val);
args.explicitOpts[opt.names[0]] = val;
Class.replaceProperty(res, opt.names[0], val);
res.explicitOpts[opt.names[0]] = val;
}
for (let [i, val] in array.iterItems(args))
res[i] = String(val);