зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1231867: Remove use of the spread operator to support node 4.2. r=miker
--HG-- extra : commitid : 56RoXh2T8JM extra : rebase_source : 1d55bfbb97a042168cc608bce84897bf5700b5a6
This commit is contained in:
Родитель
5806db05fe
Коммит
48323f5e76
|
@ -94,7 +94,7 @@ function reindent(text) {
|
|||
let indents = lines.filter(s => s.trim().length > 0)
|
||||
.map(s => s.length - s.trimLeft().length);
|
||||
// Find the smallest indent level in use
|
||||
let minIndent = Math.min(...indents);
|
||||
let minIndent = Math.min.apply(null, indents);
|
||||
|
||||
// Strip off the found indent level and prepend the new indent level, but only
|
||||
// if the string isn't already empty.
|
||||
|
|
Загрузка…
Ссылка в новой задаче