mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
web/polyfill: actually fix iterator map
This commit is contained in:
parent
ffa2b0fd51
commit
24dea86c9e
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue