- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
687 B
JavaScript
20 lines
687 B
JavaScript
'use strict';
|
|
|
|
var GetIntrinsic = require('get-intrinsic');
|
|
|
|
var callBindBasic = require('call-bind-apply-helpers');
|
|
|
|
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
|
|
/** @type {import('.')} */
|
|
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
/* eslint no-extra-parens: 0 */
|
|
|
|
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
}
|
|
return intrinsic;
|
|
};
|