From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:48:15 +0800 Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改 --- PAMapp/node_modules/core-js/internals/an-instance.js | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/PAMapp/node_modules/core-js/internals/an-instance.js b/PAMapp/node_modules/core-js/internals/an-instance.js index 5e1929c..d765367 100644 --- a/PAMapp/node_modules/core-js/internals/an-instance.js +++ b/PAMapp/node_modules/core-js/internals/an-instance.js @@ -1,4 +1,9 @@ -module.exports = function (it, Constructor, name) { - if (it instanceof Constructor) return it; - throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation'); +var global = require('../internals/global'); +var isPrototypeOf = require('../internals/object-is-prototype-of'); + +var TypeError = global.TypeError; + +module.exports = function (it, Prototype) { + if (isPrototypeOf(Prototype, it)) return it; + throw TypeError('Incorrect invocation'); }; -- Gitblit v1.8.0