From 26fa49f4b0aa658d65a21fffe828f39e78302573 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 17:46:58 +0800 Subject: [PATCH] Revert "Update#139889 [ 快速篩選 ] 年資文案調整" --- PAMapp/node_modules/core-js/modules/es.string.from-code-point.js | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/es.string.from-code-point.js b/PAMapp/node_modules/core-js/modules/es.string.from-code-point.js index ea9206f..427952c 100644 --- a/PAMapp/node_modules/core-js/modules/es.string.from-code-point.js +++ b/PAMapp/node_modules/core-js/modules/es.string.from-code-point.js @@ -1,16 +1,20 @@ var $ = require('../internals/export'); +var global = require('../internals/global'); +var uncurryThis = require('../internals/function-uncurry-this'); var toAbsoluteIndex = require('../internals/to-absolute-index'); +var RangeError = global.RangeError; var fromCharCode = String.fromCharCode; -// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing +// eslint-disable-next-line es-x/no-string-fromcodepoint -- required for testing var $fromCodePoint = String.fromCodePoint; +var join = uncurryThis([].join); // length should be 1, old FF problem var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1; // `String.fromCodePoint` method // https://tc39.es/ecma262/#sec-string.fromcodepoint -$({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, { +$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, { // eslint-disable-next-line no-unused-vars -- required for `.length` fromCodePoint: function fromCodePoint(x) { var elements = []; @@ -20,10 +24,9 @@ while (length > i) { code = +arguments[i++]; if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw RangeError(code + ' is not a valid code point'); - elements.push(code < 0x10000 + elements[i] = code < 0x10000 ? fromCharCode(code) - : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00) - ); - } return elements.join(''); + : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00); + } return join(elements, ''); } }); -- Gitblit v1.8.0