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:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user