source: frontend/node_modules/core-js/modules/es.regexp.flags.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 611 bytes
Line 
1'use strict';
2var DESCRIPTORS = require('../internals/descriptors');
3var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
4var regExpFlagsDetection = require('../internals/regexp-flags-detection');
5var regExpFlagsGetterImplementation = require('../internals/regexp-flags');
6
7// `RegExp.prototype.flags` getter
8// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
9if (DESCRIPTORS && !regExpFlagsDetection.correct) {
10 defineBuiltInAccessor(RegExp.prototype, 'flags', {
11 configurable: true,
12 get: regExpFlagsGetterImplementation
13 });
14
15 regExpFlagsDetection.correct = true;
16}
Note: See TracBrowser for help on using the repository browser.