From ad69f9c86b950cc84ca103e65824b9c9129d3999 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 31 Jan 2022 18:06:13 +0100 Subject: add support for testing with other browsers (especially Abrowser and Librewolf) There are still some spurious failures when running under those newer browsers. Those will be systematically investigated and fixed. --- common/entities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/entities.js') diff --git a/common/entities.js b/common/entities.js index 3ccbf04..96de5cb 100644 --- a/common/entities.js +++ b/common/entities.js @@ -74,7 +74,7 @@ function item_id_string(...args) { #EXPORT item_id_string /* vers should be an array of comparable values. Return the greatest one. */ -const max = vals => Array.reduce(vals, (v1, v2) => v1 > v2 ? v1 : v2); +const max = vals => vals.reduce((v1, v2) => v1 > v2 ? v1 : v2); /* * versioned_item should be a dict with keys being version strings and values @@ -167,6 +167,6 @@ const version_reductor = (acc, n) => [...(n || acc.length ? [n] : []), ...acc]; * * Returns a *new* array. Doesn't modify its argument. */ -const normalize_version = ver => Array.reduceRight(ver, version_reductor, []); +const normalize_version = ver => ver.reduceRight(version_reductor, []); #ENDIF -- cgit v1.2.3