forked from Mirrors/gomuks
web/polyfill: add missing semicolons
This commit is contained in:
parent
b166302d1e
commit
2e5c2fdd6c
1 changed files with 2 additions and 8 deletions
|
@ -15,10 +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([])).keys().__proto__.map = function(callbackFn) {
|
;(new Map([])).keys().__proto__.map = function(callbackFn) {
|
||||||
if (!this) {
|
|
||||||
return []
|
|
||||||
}
|
|
||||||
const output = []
|
const output = []
|
||||||
let i = 0
|
let i = 0
|
||||||
for (const item of this) {
|
for (const item of this) {
|
||||||
|
@ -27,10 +24,7 @@ if (!window.Iterator?.prototype.map) {
|
||||||
}
|
}
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
(new Map([])).keys().__proto__.filter = function(callbackFn) {
|
;(new Map([])).keys().__proto__.filter = function(callbackFn) {
|
||||||
if (!this) {
|
|
||||||
return []
|
|
||||||
}
|
|
||||||
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