From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/core-js/stable/instance/entries.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/PAMapp/node_modules/core-js/stable/instance/entries.js b/PAMapp/node_modules/core-js/stable/instance/entries.js index 4a80ff1..be33e5d 100644 --- a/PAMapp/node_modules/core-js/stable/instance/entries.js +++ b/PAMapp/node_modules/core-js/stable/instance/entries.js @@ -1,6 +1,9 @@ require('../../modules/web.dom-collections.iterator'); -var entries = require('../array/virtual/entries'); var classof = require('../../internals/classof'); +var hasOwn = require('../../internals/has-own-property'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/entries'); + var ArrayPrototype = Array.prototype; var DOMIterables = { @@ -10,7 +13,6 @@ module.exports = function (it) { var own = it.entries; - return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.entries) - // eslint-disable-next-line no-prototype-builtins -- safe - || DOMIterables.hasOwnProperty(classof(it)) ? entries : own; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.entries) + || hasOwn(DOMIterables, classof(it)) ? method : own; }; -- Gitblit v1.8.0