![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ts.corals.io/frontend/node_modules/core-js/modules/ |
var global = require('../internals/global'); var DESCRIPTORS = require('../internals/descriptors'); var MISSED_STICKY = require('../internals/regexp-sticky-helpers').MISSED_STICKY; var classof = require('../internals/classof-raw'); var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); var getInternalState = require('../internals/internal-state').get; var RegExpPrototype = RegExp.prototype; var TypeError = global.TypeError; // `RegExp.prototype.sticky` getter // https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky if (DESCRIPTORS && MISSED_STICKY) { defineBuiltInAccessor(RegExpPrototype, 'sticky', { configurable: true, get: function sticky() { if (this === RegExpPrototype) return undefined; // We can't use InternalStateModule.getterFor because // we don't add metadata for regexps created by a literal. if (classof(this) === 'RegExp') { return !!getInternalState(this).sticky; } throw TypeError('Incompatible receiver, RegExp required'); } }); }