mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 21:22:28 +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
|
||||
// iteration.
|
||||
if (key in obj)
|
||||
result.push([key, obj[val]]);
|
||||
result.push([key, obj[key]]);
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -40,7 +40,7 @@
|
||||
// The check is necessary, since keys may be removed during
|
||||
// iteration.
|
||||
if (key in obj)
|
||||
result.push(obj[val]);
|
||||
result.push(obj[key]);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user