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/modules/es.date.to-string.js | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/es.date.to-string.js b/PAMapp/node_modules/core-js/modules/es.date.to-string.js index 5df1ce8..76a74d2 100644 --- a/PAMapp/node_modules/core-js/modules/es.date.to-string.js +++ b/PAMapp/node_modules/core-js/modules/es.date.to-string.js @@ -1,17 +1,19 @@ -var redefine = require('../internals/redefine'); +// TODO: Remove from `core-js@4` +var uncurryThis = require('../internals/function-uncurry-this'); +var defineBuiltIn = require('../internals/define-built-in'); var DatePrototype = Date.prototype; var INVALID_DATE = 'Invalid Date'; var TO_STRING = 'toString'; -var nativeDateToString = DatePrototype[TO_STRING]; -var getTime = DatePrototype.getTime; +var un$DateToString = uncurryThis(DatePrototype[TO_STRING]); +var getTime = uncurryThis(DatePrototype.getTime); // `Date.prototype.toString` method // https://tc39.es/ecma262/#sec-date.prototype.tostring if (String(new Date(NaN)) != INVALID_DATE) { - redefine(DatePrototype, TO_STRING, function toString() { - var value = getTime.call(this); + defineBuiltIn(DatePrototype, TO_STRING, function toString() { + var value = getTime(this); // eslint-disable-next-line no-self-compare -- NaN check - return value === value ? nativeDateToString.call(this) : INVALID_DATE; + return value === value ? un$DateToString(this) : INVALID_DATE; }); } -- Gitblit v1.8.0