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.number.to-precision.js | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/es.number.to-precision.js b/PAMapp/node_modules/core-js/modules/es.number.to-precision.js index 7b1ab85..5109fc7 100644 --- a/PAMapp/node_modules/core-js/modules/es.number.to-precision.js +++ b/PAMapp/node_modules/core-js/modules/es.number.to-precision.js @@ -1,16 +1,17 @@ 'use strict'; var $ = require('../internals/export'); +var uncurryThis = require('../internals/function-uncurry-this'); var fails = require('../internals/fails'); var thisNumberValue = require('../internals/this-number-value'); -var nativeToPrecision = 1.0.toPrecision; +var un$ToPrecision = uncurryThis(1.0.toPrecision); var FORCED = fails(function () { // IE7- - return nativeToPrecision.call(1, undefined) !== '1'; + return un$ToPrecision(1, undefined) !== '1'; }) || !fails(function () { // V8 ~ Android 4.3- - nativeToPrecision.call({}); + un$ToPrecision({}); }); // `Number.prototype.toPrecision` method @@ -18,7 +19,7 @@ $({ target: 'Number', proto: true, forced: FORCED }, { toPrecision: function toPrecision(precision) { return precision === undefined - ? nativeToPrecision.call(thisNumberValue(this)) - : nativeToPrecision.call(thisNumberValue(this), precision); + ? un$ToPrecision(thisNumberValue(this)) + : un$ToPrecision(thisNumberValue(this), precision); } }); -- Gitblit v1.8.0