mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13: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/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if (!window.Iterator?.prototype.map) {
|
if (!window.Iterator?.prototype.map) {
|
||||||
(new Map([])).__proto__.map = function(callbackFn) {
|
(new Map([])).keys().__proto__.map = function(callbackFn) {
|
||||||
const output = []
|
const output = []
|
||||||
let i = 0
|
let i = 0
|
||||||
for (const item of this) {
|
for (const item of this) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue