Merge pull request #3154 from overleaf/jpa-bib-log-parser-use-es5

[misc] use es5 syntax in bib-log-parser -- babel does not process it

GitOrigin-RevId: 82585111941b03b799de2fd209759078e0c6e7f6
This commit is contained in:
Jakob Ackermann 2020-09-03 10:42:26 +02:00 committed by Copybot
parent 692b5546c5
commit 473e9d32f2

View file

@ -27,12 +27,17 @@ define(function() {
// Too many log entries can cause browser crashes
// Construct a too many files error from the last match
const maxErrors = 100
var maxErrors = 100;
if (iterationCount >= maxErrors) {
const level = newEntry.level + "s"
newEntry.message = `Over ${maxErrors} ${level} returned. Download raw logs to see full list`;
var level = newEntry.level + "s";
newEntry.message = [
"Over",
maxErrors,
level,
"returned. Download raw logs to see full list"
].join(" ");
newEntry.line = undefined;
result.unshift(newEntry)
result.unshift(newEntry);
return [result, ""];
}