mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 03:24:11 +01:00
Fix Object.{entries,values} polyfills.
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
// The check is necessary, since keys may be removed during
|
// The check is necessary, since keys may be removed during
|
||||||
// iteration.
|
// iteration.
|
||||||
if (key in obj)
|
if (key in obj)
|
||||||
result.push([key, obj[val]]);
|
result.push([key, obj[key]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
// The check is necessary, since keys may be removed during
|
// The check is necessary, since keys may be removed during
|
||||||
// iteration.
|
// iteration.
|
||||||
if (key in obj)
|
if (key in obj)
|
||||||
result.push(obj[val]);
|
result.push(obj[key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user