From 68ca0ac33c0790b3636630b37d41d18ea429aa3f Mon Sep 17 00:00:00 2001 From: Stephen Wade Date: Thu, 5 Aug 2021 17:03:21 -0400 Subject: [PATCH] f --- lib/linter/linter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter/linter.js b/lib/linter/linter.js index e67574599bbe..12bf717d96ad 100644 --- a/lib/linter/linter.js +++ b/lib/linter/linter.js @@ -1306,7 +1306,7 @@ class Linter { const text = ensureText(textOrSourceCode); const preprocess = options.preprocess || (rawText => [rawText]); - const postprocess = options.postprocess || Array.prototype.flat.call; + const postprocess = options.postprocess || (messagesList => messagesList.flat()); const filterCodeBlock = options.filterCodeBlock || (blockFilename => blockFilename.endsWith(".js"));