1
0
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:
Doug Kearns
2015-12-20 21:36:47 +11:00
parent 27cdeb1885
commit f85f3df612

View File

@@ -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;