Skip to content

Commit 08677aa

Browse files
authored
Merge pull request #991 from rylev/use-old-syntax
Stop using new ||= syntax since it breaks in some still widely used browsers
2 parents 23d0f89 + 8c890da commit 08677aa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

site/static/compare.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,11 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
556556
return !f || (n.benchmark + "-" + n.profile).includes(f);
557557
}).
558558
reduce((accum, next) => {
559-
accum[next.benchmark + "-" + next.profile] ||= [];
560-
accum[next.benchmark + "-" + next.profile].push(next);
559+
const key = next.benchmark + "-" + next.profile;
560+
if (!accum[key]) {
561+
accum[key] = [];
562+
}
563+
accum[key].push(next);
561564
return accum;
562565
}, {});
563566
benches = Object.entries(benches).

0 commit comments

Comments
 (0)