1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 14:12:26 +01:00

Fix :set <no-arg>.

Args needs a working length property. Reverts change in 7ee5792.

Despite grave warnings of impending performance doom there seems to be
no penalty for using __proto__ here.
This commit is contained in:
Doug Kearns
2015-06-23 23:57:26 +10:00
parent 35176d50ac
commit ccfc69bc01

View File

@@ -331,8 +331,9 @@ var Command = Class("Command", {
}),
newArgs: function newArgs(base) {
let res = Object.create(this.argsPrototype);
let res = [];
update(res, base);
res.__proto__ = this.argsPrototype;
return res;
},