Files
NapCatQQ/.pnpm-store/v3/files/8b/9e3ce443d30227dd6ab1f9904be1bce041f5154448bc3ced6be27c6a5d44591d478f5c7420fd85b0812ec6172388709413885ffa5e7f5e8744e6cfaba3598f
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

40 lines
864 B
Plaintext

'use strict';
var implementation = require('./implementation');
var supportsDescriptors = require('define-properties').supportsDescriptors;
var $gOPD = Object.getOwnPropertyDescriptor;
module.exports = function getPolyfill() {
if (supportsDescriptors && (/a/mig).flags === 'gim') {
var descriptor = $gOPD(RegExp.prototype, 'flags');
if (
descriptor
&& typeof descriptor.get === 'function'
&& 'dotAll' in RegExp.prototype
&& 'hasIndices' in RegExp.prototype
) {
/* eslint getter-return: 0 */
var calls = '';
var o = {};
Object.defineProperty(o, 'hasIndices', {
get: function () {
calls += 'd';
}
});
Object.defineProperty(o, 'sticky', {
get: function () {
calls += 'y';
}
});
descriptor.get.call(o);
if (calls === 'dy') {
return descriptor.get;
}
}
}
return implementation;
};