diff options
Diffstat (limited to 'node_modules/yallist/yallist.js')
-rw-r--r-- | node_modules/yallist/yallist.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/yallist/yallist.js b/node_modules/yallist/yallist.js index 4e83ab1c5..ed4e7303a 100644 --- a/node_modules/yallist/yallist.js +++ b/node_modules/yallist/yallist.js @@ -320,7 +320,7 @@ Yallist.prototype.sliceReverse = function (from, to) { return ret } -Yallist.prototype.splice = function (start, deleteCount, ...nodes) { +Yallist.prototype.splice = function (start, deleteCount /*, ...nodes */) { if (start > this.length) { start = this.length - 1 } @@ -345,8 +345,8 @@ Yallist.prototype.splice = function (start, deleteCount, ...nodes) { walker = walker.prev } - for (var i = 0; i < nodes.length; i++) { - walker = insert(this, walker, nodes[i]) + for (var i = 2; i < arguments.length; i++) { + walker = insert(this, walker, arguments[i]) } return ret; } |