1
0
Fork 0
forked from Mirrors/gomuks

web/polyfill: add missing semicolons

This commit is contained in:
Tulir Asokan 2024-12-05 18:39:58 +02:00
parent b166302d1e
commit 2e5c2fdd6c

View file

@ -15,10 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
if (!window.Iterator?.prototype.map) {
(new Map([])).keys().__proto__.map = function(callbackFn) {
if (!this) {
return []
}
;(new Map([])).keys().__proto__.map = function(callbackFn) {
const output = []
let i = 0
for (const item of this) {
@ -27,10 +24,7 @@ if (!window.Iterator?.prototype.map) {
}
return output
}
(new Map([])).keys().__proto__.filter = function(callbackFn) {
if (!this) {
return []
}
;(new Map([])).keys().__proto__.filter = function(callbackFn) {
const output = []
let i = 0
for (const item of this) {