From 48323f5e76aeb941320fb8d57ccbe6e293fafdad Mon Sep 17 00:00:00 2001 From: Dave Townsend Date: Fri, 11 Dec 2015 07:19:54 -0500 Subject: [PATCH] Bug 1231867: Remove use of the spread operator to support node 4.2. r=miker --HG-- extra : commitid : 56RoXh2T8JM extra : rebase_source : 1d55bfbb97a042168cc608bce84897bf5700b5a6 --- testing/eslint-plugin-mozilla/lib/processors/xbl-bindings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/eslint-plugin-mozilla/lib/processors/xbl-bindings.js b/testing/eslint-plugin-mozilla/lib/processors/xbl-bindings.js index 675218212c5f..c5a980829619 100644 --- a/testing/eslint-plugin-mozilla/lib/processors/xbl-bindings.js +++ b/testing/eslint-plugin-mozilla/lib/processors/xbl-bindings.js @@ -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.