source: imaps-frontend/node_modules/core-js/internals/regexp-get-flags.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 501 bytes
Line 
1'use strict';
2var call = require('../internals/function-call');
3var hasOwn = require('../internals/has-own-property');
4var isPrototypeOf = require('../internals/object-is-prototype-of');
5var regExpFlags = require('../internals/regexp-flags');
6
7var RegExpPrototype = RegExp.prototype;
8
9module.exports = function (R) {
10 var flags = R.flags;
11 return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)
12 ? call(regExpFlags, R) : flags;
13};
Note: See TracBrowser for help on using the repository browser.