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:
Dave Townsend 2015-12-11 07:19:54 -05:00
Родитель 5806db05fe
Коммит 48323f5e76
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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.