varDESCRIPTORS=require('../internals/descriptors');varUNSUPPORTED_Y=require('../internals/regexp-sticky-helpers').UNSUPPORTED_Y;vardefineProperty=require('../internals/object-define-property').f;vargetInternalState=require('../internals/internal-state').get;varRegExpPrototype=RegExp.prototype;// `RegExp.prototype.sticky` getterif(DESCRIPTORS&&UNSUPPORTED_Y){defineProperty(RegExp.prototype,'sticky',{configurable:true,get:function(){if(this===RegExpPrototype)returnundefined;// We can't use InternalStateModule.getterFor because// we don't add metadata for regexps created by a literal.if(thisinstanceofRegExp){return!!getInternalState(this).sticky;}throwTypeError('Incompatible receiver, RegExp required');}});}