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/modules/esnext.map.update.js | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/esnext.map.update.js b/PAMapp/node_modules/core-js/modules/esnext.map.update.js index b3b71ca..39dbfe0 100644 --- a/PAMapp/node_modules/core-js/modules/esnext.map.update.js +++ b/PAMapp/node_modules/core-js/modules/esnext.map.update.js @@ -1,22 +1,28 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); +var global = require('../internals/global'); +var call = require('../internals/function-call'); var anObject = require('../internals/an-object'); var aCallable = require('../internals/a-callable'); +var TypeError = global.TypeError; + // `Set.prototype.update` method // https://github.com/tc39/proposal-collection-methods -$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { +$({ target: 'Map', proto: true, real: true, forced: true }, { update: function update(key, callback /* , thunk */) { var map = anObject(this); + var get = aCallable(map.get); + var has = aCallable(map.has); + var set = aCallable(map.set); var length = arguments.length; aCallable(callback); - var isPresentInMap = map.has(key); + var isPresentInMap = call(has, map, key); if (!isPresentInMap && length < 3) { throw TypeError('Updating absent value'); } - var value = isPresentInMap ? map.get(key) : aCallable(length > 2 ? arguments[2] : undefined)(key, map); - map.set(key, callback(value, key, map)); + var value = isPresentInMap ? call(get, map, key) : aCallable(length > 2 ? arguments[2] : undefined)(key, map); + call(set, map, key, callback(value, key, map)); return map; } }); -- Gitblit v1.8.0