From 2a03f3c285f007f79b275fc11609f8e68d5afd90 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 29 Jul 2021 15:04:31 +0900 Subject: [PATCH] Update es6-shim.js * Reverted from #466 - No need to check that this is 'undefined'. * This pull request fix the following issue: #470 #467 --- es6-shim.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/es6-shim.js b/es6-shim.js index 7d3f07f6..b3f52d00 100644 --- a/es6-shim.js +++ b/es6-shim.js @@ -1264,10 +1264,7 @@ // Chrome defines keys/values/entries on Array, but doesn't give us // any way to identify its iterator. So add our own shimmed field. if (Object.getPrototypeOf) { - var ChromeArrayIterator = Object.getPrototypeOf([].values()); - if (ChromeArrayIterator) { // in WSH, this is `undefined` - addIterator(ChromeArrayIterator); - } + addIterator(Object.getPrototypeOf([].values()); } // note: this is positioned here because it relies on Array#entries @@ -3585,7 +3582,7 @@ }); } - if (supportsDescriptors) { + if (!ReflectShims.defineProperty) { // possible alternative: if (supportsDescriptors) var internalGet = function get(target, key, receiver) { var desc = Object.getOwnPropertyDescriptor(target, key);