From f85f3df612b44e2b37c25ab39c483bb785d972e8 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 20 Dec 2015 21:36:47 +1100 Subject: [PATCH] Fix Object.{entries,values} polyfills. --- common/modules/polyfill.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/modules/polyfill.jsm b/common/modules/polyfill.jsm index 097b9262..a18acc43 100644 --- a/common/modules/polyfill.jsm +++ b/common/modules/polyfill.jsm @@ -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;