From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:02:38 +0800 Subject: [PATCH] TODO#139884 Banner 1 文案調整 --- PAMapp/node_modules/core-js/internals/object-to-array.js | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/PAMapp/node_modules/core-js/internals/object-to-array.js b/PAMapp/node_modules/core-js/internals/object-to-array.js index 7ecba6e..b280010 100644 --- a/PAMapp/node_modules/core-js/internals/object-to-array.js +++ b/PAMapp/node_modules/core-js/internals/object-to-array.js @@ -1,7 +1,11 @@ var DESCRIPTORS = require('../internals/descriptors'); +var uncurryThis = require('../internals/function-uncurry-this'); var objectKeys = require('../internals/object-keys'); var toIndexedObject = require('../internals/to-indexed-object'); -var propertyIsEnumerable = require('../internals/object-property-is-enumerable').f; +var $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f; + +var propertyIsEnumerable = uncurryThis($propertyIsEnumerable); +var push = uncurryThis([].push); // `Object.{ entries, values }` methods implementation var createMethod = function (TO_ENTRIES) { @@ -14,8 +18,8 @@ var key; while (length > i) { key = keys[i++]; - if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) { - result.push(TO_ENTRIES ? [key, O[key]] : O[key]); + if (!DESCRIPTORS || propertyIsEnumerable(O, key)) { + push(result, TO_ENTRIES ? [key, O[key]] : O[key]); } } return result; -- Gitblit v1.8.0