From 24dea86c9e13561b7af9990bfc7621a3ba941c85 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 4 Nov 2024 11:50:52 +0100 Subject: [PATCH] web/polyfill: actually fix iterator map --- web/src/util/polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/util/polyfill.js b/web/src/util/polyfill.js index 931a449..7651c30 100644 --- a/web/src/util/polyfill.js +++ b/web/src/util/polyfill.js @@ -15,7 +15,7 @@ // along with this program. If not, see . if (!window.Iterator?.prototype.map) { - (new Map([])).__proto__.map = function(callbackFn) { + (new Map([])).keys().__proto__.map = function(callbackFn) { const output = [] let i = 0 for (const item of this) {