Skip to content

Commit c37ed35

Browse files
committed
Support for Node 20, which is still in LTS for a while.
1 parent dba6f72 commit c37ed35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,10 @@ class LabelGrouper {
415415

416416
/**
417417
* Return all of the entries in this collection.
418-
* @returns {Iterator<StatsEntry>}
418+
* @returns {Array<StatsEntry>}
419419
*/
420420
values() {
421-
return this.#map.values().filter(entry => entry.length > 0);
421+
return Array.from(this.#map.values()).filter(entry => entry.length > 0);
422422
}
423423

424424
/**

0 commit comments

Comments
 (0)