From ccfc69bc01f1d48a1845346baedf5ec126f17439 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 23 Jun 2015 23:57:26 +1000 Subject: [PATCH] Fix :set . 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. --- common/modules/commands.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/modules/commands.jsm b/common/modules/commands.jsm index 67c82ac1..f1929297 100644 --- a/common/modules/commands.jsm +++ b/common/modules/commands.jsm @@ -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; },