main
Last change
on this file 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';
|
---|
2 | var call = require('../internals/function-call');
|
---|
3 | var hasOwn = require('../internals/has-own-property');
|
---|
4 | var isPrototypeOf = require('../internals/object-is-prototype-of');
|
---|
5 | var regExpFlags = require('../internals/regexp-flags');
|
---|
6 |
|
---|
7 | var RegExpPrototype = RegExp.prototype;
|
---|
8 |
|
---|
9 | module.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.