Project

General

Profile

« Previous | Next » 

Revision ad69f9c8

Added by koszko over 1 year ago

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.

View differences:

common/entities.js
74 74
#EXPORT item_id_string
75 75

  
76 76
/* vers should be an array of comparable values. Return the greatest one. */
77
const max = vals => Array.reduce(vals, (v1, v2) => v1 > v2 ? v1 : v2);
77
const max = vals => vals.reduce((v1, v2) => v1 > v2 ? v1 : v2);
78 78

  
79 79
/*
80 80
 * versioned_item should be a dict with keys being version strings and values
......
167 167
 *
168 168
 * Returns a *new* array. Doesn't modify its argument.
169 169
 */
170
const normalize_version = ver => Array.reduceRight(ver, version_reductor, []);
170
const normalize_version = ver => ver.reduceRight(version_reductor, []);
171 171

  
172 172
#ENDIF

Also available in: Unified diff