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/is-symbol.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PAMapp/node_modules/core-js/internals/is-symbol.js b/PAMapp/node_modules/core-js/internals/is-symbol.js index 9858ef7..dcf571e 100644 --- a/PAMapp/node_modules/core-js/internals/is-symbol.js +++ b/PAMapp/node_modules/core-js/internals/is-symbol.js @@ -1,10 +1,14 @@ -var isCallable = require('../internals/is-callable'); +var global = require('../internals/global'); var getBuiltIn = require('../internals/get-built-in'); +var isCallable = require('../internals/is-callable'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid'); + +var Object = global.Object; module.exports = USE_SYMBOL_AS_UID ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn('Symbol'); - return isCallable($Symbol) && Object(it) instanceof $Symbol; + return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it)); }; -- Gitblit v1.8.0